Skip to content

Commit

Permalink
Fixes #1772
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
diemol committed Jan 18, 2023
1 parent 62ff999 commit a9c6ba6
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1095,15 +1095,24 @@ If you get a prompt asking for a password, it is: `secret`. If you wish to chang
it in the `/NodeBase/Dockerfile` and build the images yourself, or you can define a Docker image that derives from
the posted ones which reconfigures it:

Dockerfile example that extends the `node-chrome:4.7.2-20221219`. You can choose another browser image or a Standalone
browser image.

``` dockerfile
#FROM selenium/node-chrome:4.7.2-20221219
#FROM selenium/node-edge:4.7.2-20221219
#FROM selenium/node-firefox:4.7.2-20221219
#Choose the FROM statement that works for you.
FROM selenium/node-chrome:4.7.2-20221219

RUN x11vnc -storepasswd <your-password-here> /home/seluser/.vnc/passwd
```

Save the `Dockerfile` as `DockerfileVNCPasswordChanged`, open a terminal and on the same directory run:

```shell
docker build -t selenium/node-chrome-vnc-password-changed:4.7.2-20221219 -f DockerfileVNCPasswordChanged .
```

And from now on, instead of using `node-chrome:4.7.2-20221219` in your scripts or docker-compose files, use
`selenium/node-chrome-vnc-password-changed:4.7.2-20221219`.

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

If you want to run VNC in view-only mode you can set the environment variable `SE_VNC_VIEW_ONLY=1`.
Expand Down

0 comments on commit a9c6ba6

Please sign in to comment.