This guide explains how to run eDEX-UI in a Docker container.
- Docker and Docker Compose installed on your system
- X11 server running on your host machine
- X11 forwarding enabled
- Allow X11 connections from Docker:
xhost +local:docker- Build and run the container:
docker-compose up --buildIf you encounter any issues with X11 forwarding:
- Make sure X11 is running on your host:
echo $DISPLAY- Check X11 permissions:
ls -l /tmp/.X11-unix- If needed, update the DISPLAY environment variable in the Dockerfile to match your host's display:
export DISPLAY=:0.0 # or whatever your display isThe xhost +local:docker command allows any local Docker container to connect to your X server. This is generally safe for local development but should be used with caution in production environments.
To stop the container:
docker-compose downTo remove X11 permissions after you're done:
xhost -local:docker