-
Notifications
You must be signed in to change notification settings - Fork 0
compatibility
github-actions[bot] edited this page Apr 12, 2026
·
4 revisions
To run graphical applications within a Docker container on macOS you need an X server and a few configuration steps.
Home: Home
-
Install XQuartz from https://www.xquartz.org/ and log out / log back in.
-
In XQuartz Preferences → Security, enable "Allow connections from network clients".
-
Allow local connections from Docker (on the host):
xhost + 127.0.0.1- Run the container (example):
docker run -it --rm \
-e DISPLAY=127.0.0.1:0 \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v ./user_code:/app/user_code \
raylib_container- Verify inside the container with
xeyes.
Notes
- Ensure XQuartz is running before starting the container.
- If graphical output fails, double-check XQuartz security settings and that the
DISPLAYis correct.
If you need troubleshooting help, see the repository README or open an issue.
Wiki links: Home overview linux/usage windows/usage