Patrick

How-to Guide Dockerized CentOS or Ubuntu Desktop with HTML5 noVNC Web Browser Connectivity

Here is a nice one for making a Docker container with VNC and noVNC access. noVNC allows you to access the container using a HTML5 web browser so you do not need to install software.

Here is the GitHub of what we are using:

Step 1: Pick CentOS or Ubuntu

Step 2: Launch container:
CentOS
Code:
docker run -d -p 5901:5901 -p 6901:6901 consol/centos-xfce-vnc
Ubuntu
Code:
docker run -d -p 5901:5901 -p 6901:6901 consol/ubuntu-xfce-vnc
Step 3: Connect via web browser:
http://<IP Address here>:6901/?password=vncpassword/

Docker VNC CentOS HTML5 noVNC Desktop.JPG


This gives you a totally throw-away Linux container based on CentOS or Ubuntu that you can connect to via a web browser (e.g. your phone) without needing VNC software locally.

This is likely okay for a quick session exposed to LAN only, but I would suggest not putting this on a publicly accessible IP.
Author
Patrick
Views
2,804
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from Patrick