GUI-apps in Docker Desktop

Hi,

Before Docker Desktop, I used the “cypress/included” container which has a graphical application (a browser) that runs in the container but displays in the host.
According to this information page: Run Cypress with a single Docker command, you could start like this:

DISPLAY=$IP:0
docker run -it \
  -v $PWD:/e2e \
  -v /tmp/.X11-unix:/tmp/.X11-unix \
  -w /e2e \
  -e DISPLAY \
  --entrypoint cypress \
  cypress/included:3.2.0 open --project .

Now with Docker Desktop, this doesn’t work anymore (Error: Unable to open X display.).

How can you run GUI-application when using Docker Desktop?

Have you been able to solve this issue, @haaiee ?

Unfortunately not.

I myself am still on Docker without Desktop.

My colleague is using Docker Desktop, and for her I included noVNC (image: theasp/novnc:latest) in docker-compose.yml for the gui application.

I would still love it if someone found a solusion :pray:

1 Like