This repository contains the Dockerfile and associated files for setting up a container with Ubuntu, GNOME and TigerVNC for Docker.
- The VNC Server currently defaults to 1366*768 24bit.
-
Install Docker.
For an Ubuntu 16.04 host the following commands will get you up and running:
#install docker-ce from Docker official site step by step
-
You can then pull the file:
sudo docker pull Lvious/dockerfile-ubuntu-gnome
Or alternatively build an image from the Dockerfile:
sudo docker build -t="Lvious/dockerfile-ubuntu-gnome" github.com/Lvious/Dockerfile-Ubuntu-Gnome
-
Change the port number to run multiple instances on the same host (remeber to open the ports for tcp ingress)
-
this will run and drop you into a session:
sudo docker run -it --rm -p 5901:5901 Lvious/dockerfile-ubuntu-gnome
-
or for silent running:
sudo docker run -it -d -p 5901:5901 Lvious/dockerfile-ubuntu-gnome
- Connect to
vnc://<host>:5901
via your VNC client. currently the password is hardcoded to "acoman"
-
You can use the following command from within the container to kill the vnc server:
USER=root vncserver -kill :1
-
Then run the following command from within the container to restart start the vnc server, the flags are optional but pretty self explanatory.
USER=root vncserver :1 -geometry 1024x768 -depth 24