9

I am using selenium/standalone-chrome-debug.

By default connecting to the container via VNC will trigger an authentication prompt which can be avoided by setting an environment variable as per the documentation:

If you want to run VNC without password authentication you can set the environment variable VNC_NO_PASSWORD=1.

When I start the container with the following command, I'm still prompted for the password:

docker run -d -p 4444:4444 -p 0:5900 -v /dev/shm:/dev/shm -e VNC_NO_PASSWORD=1 selenium/standalone-chrome-debug

As you can see in the following screencast:

  • I'm still asked for a password
  • Trying to authenticate without password fails
  • When I use the default password (secret), it passes

Question: how do I avoid authentication completely?

enter image description here

customcommander
  • 17,580
  • 5
  • 58
  • 84

1 Answers1

8

Adding

  VNC_NO_PASSWORD: 1

to the environment of the relevant service in docker-compose.yml worked for me.

Denis Howe
  • 2,092
  • 1
  • 23
  • 25
  • 3
    For future visitors: this was changed to require `SE_VNC_NO_PASSWORD: 1` as of around tag 4.2.2-20220622. See https://github.com/SeleniumHQ/docker-selenium/pull/1603 – Matt Jul 20 '22 at 01:59