I needed to install VNC server inside docker image, so I made a bit of exploring around and found start vnc scraping. Under scraping server is understood x0vncserver which don’t create virtual display but shares existing X server display. So it is ideal for use inside docker image.

Installation run without any problem:

apt-get install tigervnc-scraping-server

I wanted to connect without password. You can do this by SecurityTypes parameter as described in x0vncserver manual. I put this info and info about running vnc server in background from previous link and that’s it:

x0vncserver SecurityTypes=None >/dev/null 2>&1 &

I tested it all under debian lxqt installation.

Links: