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): -e DISPLAY This runs the container with your DISPLAY variable as the value of the DISPLAY variable inside the container.
-v /tmp/.X11-unix:/tmp/.X11-unix This mounts the /tmp/.X11-unix socket on the host machine inside the container
NOTE:
Dockerfile: FROM ubuntu:16.04 ENV DISPLAY :0 RUN apt-get -y update && apt-get -y install xauth ENTRYPOINT ["/bin/bash"]
Content type
Image
Digest
Size
77.7 MB
Last updated
over 9 years ago
docker pull craigrhodes/x11