Skip to content
This repository was archived by the owner on Jun 22, 2024. It is now read-only.

Commit a9c6ba6

Browse files
committed
[skip ci]
1 parent 62ff999 commit a9c6ba6

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

README.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1095,15 +1095,24 @@ If you get a prompt asking for a password, it is: `secret`. If you wish to chang
10951095
it in the `/NodeBase/Dockerfile` and build the images yourself, or you can define a Docker image that derives from
10961096
the posted ones which reconfigures it:
10971097

1098+
Dockerfile example that extends the `node-chrome:4.7.2-20221219`. You can choose another browser image or a Standalone
1099+
browser image.
1100+
10981101
``` dockerfile
1099-
#FROM selenium/node-chrome:4.7.2-20221219
1100-
#FROM selenium/node-edge:4.7.2-20221219
1101-
#FROM selenium/node-firefox:4.7.2-20221219
1102-
#Choose the FROM statement that works for you.
1102+
FROM selenium/node-chrome:4.7.2-20221219
11031103

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

1107+
Save the `Dockerfile` as `DockerfileVNCPasswordChanged`, open a terminal and on the same directory run:
1108+
1109+
```shell
1110+
docker build -t selenium/node-chrome-vnc-password-changed:4.7.2-20221219 -f DockerfileVNCPasswordChanged .
1111+
```
1112+
1113+
And from now on, instead of using `node-chrome:4.7.2-20221219` in your scripts or docker-compose files, use
1114+
`selenium/node-chrome-vnc-password-changed:4.7.2-20221219`.
1115+
11071116
If you want to run VNC without password authentication you can set the environment variable `SE_VNC_NO_PASSWORD=1`.
11081117

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

0 commit comments

Comments
 (0)