Used as a base image for other images wanting X11 capabilities like IDE's etc ...
FROM ubuntu:bionic
MAINTAINER Andy Luis "MVP Java - mvpjava.com"
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update &&
apt-get install -y sudo xauth xorg openbox &&
apt-get install -y libxext-dev libxrender-dev libxtst-dev firefox &&
apt-get install -y apt-transport-https ca-certificates libcurl3-gnutls &&
apt-get clean &&
rm -rf /var/lib/apt/lists/*
CMD ["/bin/bash"]
docker build -t mvpjava/ubuntu-x11 .
Note that this image was flattened via export/import in order to reduce the size of the base image as much as possible
An image imported via docker import won't know what command to run.
Any image will lose all of its associated metadata on export, so the default command "CMD ["/bin/bash"]"
won't be available after importing it somewhere else and that is why I added the command "/usr/bin/xeyes" below.
Also it nice to have confirmation that X11 working by have those funny eyes appearing!
docker run --rm -it
-e DISPLAY
-v /tmp/.X11-unix:/tmp/.X11-unix
-v $HOME/.Xauthority:/home/$USER/.Xauthority
--name ubuntu-x11
mvpjava/ubuntu-x11 /usr/bin/xeyes
Content type
Image
Digest
Size
276.1 MB
Last updated
over 7 years ago
docker pull mvpjava/ubuntu-x11