Skip to content

Latest commit

 

History

History
56 lines (40 loc) · 1.11 KB

File metadata and controls

56 lines (40 loc) · 1.11 KB

Running eDEX-UI in Docker

This guide explains how to run eDEX-UI in a Docker container.

Prerequisites

  1. Docker and Docker Compose installed on your system
  2. X11 server running on your host machine
  3. X11 forwarding enabled

Setup

  1. Allow X11 connections from Docker:
xhost +local:docker
  1. Build and run the container:
docker-compose up --build

Troubleshooting

If you encounter any issues with X11 forwarding:

  1. Make sure X11 is running on your host:
echo $DISPLAY
  1. Check X11 permissions:
ls -l /tmp/.X11-unix
  1. If needed, update the DISPLAY environment variable in the Dockerfile to match your host's display:
export DISPLAY=:0.0  # or whatever your display is

Security Note

The 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.

Stopping the Container

To stop the container:

docker-compose down

To remove X11 permissions after you're done:

xhost -local:docker