This repository was archived by the owner on Jun 22, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -1095,15 +1095,24 @@ If you get a prompt asking for a password, it is: `secret`. If you wish to chang
1095
1095
it in the ` /NodeBase/Dockerfile ` and build the images yourself, or you can define a Docker image that derives from
1096
1096
the posted ones which reconfigures it:
1097
1097
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
+
1098
1101
``` 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
1103
1103
1104
1104
RUN x11vnc -storepasswd <your-password-here> /home/seluser/.vnc/passwd
1105
1105
```
1106
1106
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
+
1107
1116
If you want to run VNC without password authentication you can set the environment variable ` SE_VNC_NO_PASSWORD=1 ` .
1108
1117
1109
1118
If you want to run VNC in view-only mode you can set the environment variable ` SE_VNC_VIEW_ONLY=1 ` .
You can’t perform that action at this time.
0 commit comments