-
Notifications
You must be signed in to change notification settings - Fork 380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cypress interactive mode not working in Docker-desktop (Unable to open X Display) #763
Comments
Hi Hendrik, I am also trying to run Cypress GUI from inside Docker Desktop. Do you have X11 server installed? You need to forward the XVFB messages from Cypress out of the Docker container into an X11 server. See this example if you haven't already: (https://www.cypress.io/blog/2019/05/02/run-cypress-with-a-single-docker-command/) I setup the X11 Server and trying to open Cypress this way(I have a docker-compose.yml file). docker compose run -v /tmp/.X11-unix:/tmp/.X11-unix --rm e2e cypress open. However, Cypress never opens. (That dri3 extension I get even if I run Cypress headless which that works) If I try to pass -e DISPLAY, I get a 'The Test Runner unexpectedly exited via a close event with signal SIGSEGV' |
I had a similar problem where Cypress failed to open on Docker Desktop I uninstall Docker Desktop and install Docker Desktop So, perhaps something broken during the upgrade process? TLDR: Uninstall and reinstall may fix the issue. |
Hi @tyler36, thanks for the reply! Are you saying that interactive mode is now working in Docker for you? |
Yes, I'm on a Win10 with Docker Deskop |
I'll try reinstalling then. Anyway thanks 👍 |
|
Closing. |
Hi,
I used to run the Cypress interactive GUI inside docker like this on Linux:
This works in plain Docker.
Now I installed Docker Desktop and I get this error:
Docker Desktop creates a container that contains all the other containers, so another layer of container.
I can imagine that this is causing the problem, but I don't know how to fix it.
As Docker Desktop seems to be the new preferred way to run Docker, and also my colleagues moved over to Docker Desktop, I would like to get Cypress GUI to work on Docker Desktop.
Can I run Cypress in the
cypress/included
docker container inside Docker Desktop? How?The text was updated successfully, but these errors were encountered: