@@ -925,12 +925,12 @@ captured in the same video.
925925[ Chrome] ( https://developers.google.com/web/updates/2017/04/headless-chrome ) ,
926926When using headless mode, there's no need for the [ Xvfb] ( https://en.wikipedia.org/wiki/Xvfb ) server to be started.
927927
928- To avoid starting the server you can set the ` SE_START_XVFB ` environment variable to ` false `
928+ To avoid starting the server you can set the ` START_XVFB ` environment variable to ` false `
929929(or any other value than ` true ` ), for example:
930930
931931``` bash
932932$ docker run -d --net grid -e SE_EVENT_BUS_HOST=selenium-hub -e SE_EVENT_BUS_PUBLISH_PORT=4442 \
933- -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 -e SE_START_XVFB =false --shm-size=" 2g" selenium/node-chrome:4.7.2-20221219
933+ -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 -e START_XVFB =false --shm-size=" 2g" selenium/node-chrome:4.7.2-20221219
934934```
935935
936936For more information, see this GitHub [ issue] ( https://github.com/SeleniumHQ/docker-selenium/issues/567 ) .
@@ -1176,15 +1176,24 @@ If you get a prompt asking for a password, it is: `secret`. If you wish to chang
11761176it in the ` /NodeBase/Dockerfile ` and build the images yourself, or you can define a Docker image that derives from
11771177the posted ones which reconfigures it:
11781178
1179+ Dockerfile example that extends the ` node-chrome:4.7.2-20221219 ` . You can choose another browser image or a Standalone
1180+ browser image.
1181+
11791182``` dockerfile
1180- # FROM selenium/node-chrome:4.7.2-20221219
1181- # FROM selenium/node-edge:4.7.2-20221219
1182- # FROM selenium/node-firefox:4.7.2-20221219
1183- # Choose the FROM statement that works for you.
1183+ FROM selenium/node-chrome:4.7.2-20221219
11841184
11851185RUN x11vnc -storepasswd <your-password-here> /home/seluser/.vnc/passwd
11861186```
11871187
1188+ Save the ` Dockerfile ` as ` DockerfileVNCPasswordChanged ` , open a terminal and on the same directory run:
1189+
1190+ ``` shell
1191+ docker build -t selenium/node-chrome-vnc-password-changed:4.7.2-20221219 -f DockerfileVNCPasswordChanged .
1192+ ```
1193+
1194+ And from now on, instead of using ` node-chrome:4.7.2-20221219 ` in your scripts or docker-compose files, use
1195+ ` selenium/node-chrome-vnc-password-changed:4.7.2-20221219 ` .
1196+
11881197If you want to run VNC without password authentication you can set the environment variable ` SE_VNC_NO_PASSWORD=1 ` .
11891198
11901199If you want to run VNC in view-only mode you can set the environment variable ` SE_VNC_VIEW_ONLY=1 ` .
12851294
12861295` Message: unknown error: Chrome failed to start: exited abnormally `
12871296
1288- The reason _ might_ be that you've set the ` SE_START_XVFB ` environment variable to "false", but forgot to
1297+ The reason _ might_ be that you've set the ` START_XVFB ` environment variable to "false", but forgot to
12891298actually run Firefox, Chrome or Edge in headless mode.
12901299
12911300### Mounting volumes to retrieve downloaded files
0 commit comments