this is my first time using VNC and docker. I want to connect to my docker's GUI.
I have tried to follow a few tutorials online but my VNC viewer cannot connect to the display. I have exposed port 5900 in my dockerfile, and inside docker I have ran
Xvbf :1 -screen 0 1600x1200x16 & export DISPLAY=:1
and x11vnc
. It seems to work and I get message saying that the desktop is at port 5900. However I still cannot connect to localhost:5900 in my vnc viewer.
What am I doing wrong, and what can I use to diagnose my problem? Thanks!