- Install VcXsrv or an equivalent X Server
- Launch the X Server and give it permission to access connections from all clients
- Launch the GUI app from the Docker container with appropriate X11 forwarding:
docker run --env="DISPLAY=host.docker.internal:0" ghcr.io/educelab/volume-cartographer VC
- Install XQuartz
brew install --cask xquartz
- Launch XQuartz. In the Preferences/Security tab, enable "Allow connections from network clients"
- Restart XQuartz
- Launch the GUI app from the Docker container with appropriate X11 forwarding:
# Launch XQuartz xhost +localhost # Launch the container docker run --env="DISPLAY=host.docker.internal:0" ghcr.io/educelab/volume-cartographer VC
docker run -e DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix ghcr.io/educelab/volume-cartographer VC
If you get error could not connect to display :<your display number>
, run this command first to allow Docker access to X before trying again:
xhost +local:docker