添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

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?

    For future visitors: this was changed to require SE_VNC_NO_PASSWORD: 1 as of around tag 4.2.2-20220622. See github.com/SeleniumHQ/docker-selenium/pull/1603 – Matt Jul 20, 2022 at 1:59

    Thanks for contributing an answer to Stack Overflow!

    • Please be sure to answer the question. Provide details and share your research!

    But avoid

    • Asking for help, clarification, or responding to other answers.
    • Making statements based on opinion; back them up with references or personal experience.

    To learn more, see our tips on writing great answers.