Official Docker ubuntu image with XFCE and VNC Server
Only if you want to use VNC client (other solution is noVNC)
sudo apt install xtightvncviewer
git clone https://github.com/jychp/docker-xubuntu
cd docker-xubuntu
docker build -t xubuntu .
CID=$(sudo docker run -d xubuntu); CIP=$(sudo docker inspect --format '{{ .NetworkSettings.IPAddress }}' $CID); vncviewer $CIP:2
vncviewer <container_ip>:2
CID=$(sudo docker run -d xubuntu); CIP=$(sudo docker inspect --format '{{ .NetworkSettings.IPAddress }}' $CID); vncviewer $CIP:2
echo "http://<container_ip>:6901"
VNC password and resolution can be passed using environment variables.