-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting up VNC fails #76
Comments
Strange indeed. I just did a test with the docker image ( selenium/standalone-chrome-debug with id
Retracing my steps on mac os x as this: $ cid=$(docker run -d -P selenium/standalone-chrome-debug)
$ docker logs $cid And finally connecting as client: $ docker port $cid
5900/tcp -> 0.0.0.0:32770
4444/tcp -> 0.0.0.0:32771
$ docker-machine ip dev
192.168.99.100
$ open vnc://:[email protected]:32770 and the logs show client connected.
|
I tried it again and get the same problem. However, when I use the Dockerfile below, vnc works. FROM ubuntu |
Sorry if this is a stupid question but do you build the images locally? If you do can you rebuild with I have tried on my locally built image and all if fine. I tested on Mac OS X with docker-machine in virtualbox . Maybe there is another setup that's messed up? I am perplexed. |
I used the image from the hub. I tried it now with |
I ran into the same issue today with selenium/standalone-firefox-debug:latest from the hub. Going through the x11vnc code it seems that if x11vnc can't find the password file for -usepw it will try to create it by calling What I'm not sure of is why x11vnc isn't finding the password file or why it apparently works for some people and not others... |
Seems to be related to the setting of $HOME in containers. It appears that behaviour in docker changed at some point: moby/moby#2968 For recent versions of docker $HOME gets set to /root and that's where the VNC password file ends up in the published image. If you're using an older version of docker $HOME gets set to / which stops the password file being found. The -debug images could be made compatible with both versions of docker by symlinking /.vnc to /root/.vnc |
When trying to use the 'standalone-chrome-debug' image I cannot connect to the vnc port.
In the logs I see:
09/07/2015 01:59:50 passing arg to libvncserver: -rfbport
09/07/2015 01:59:50 passing arg to libvncserver: 5900
Enter VNC password: stty: standard input: Inappropriate ioctl for device
fgets: No such file or directory
stty: standard input: Inappropriate ioctl for device
x11vnc -usepw: could not find a password to use.
Failed to read: session.ignoreBorder
It seems that vnc tries to 'obfuscate' the password that is entered in the tty, but that is not possible in stty.
The text was updated successfully, but these errors were encountered: