To support x11, you only need to install xauth for the client.
To run, you MUST use the following flags to docker run (works for Linux machines only):
This runs the container with your DISPLAY variable as the value of the DISPLAY variable inside the container.
This mounts the /tmp/.X11-unix socket on the host machine inside the container
- You may also need to modify xhost permissions on the host machine for this to work properly.
ENV DISPLAY :0
RUN apt-get -y update && apt-get -y install xauth