File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ if [ "${START_XVFB}" = true ] ; then
31
31
echo " Waiting for Xvfb..."
32
32
done
33
33
34
- x11vnc ${X11VNC_OPTS} -forever -shared -rfbport 5900 -rfbportv6 5900 -display ${DISPLAY}
34
+ x11vnc ${X11VNC_OPTS} -forever -shared -rfbport ${VNC_PORT :- 5900} -rfbportv6 ${VNC_PORT :- 5900} -display ${DISPLAY}
35
35
else
36
36
echo " Vnc won't start because Xvfb is configured to not start."
37
37
fi
Original file line number Diff line number Diff line change @@ -576,7 +576,8 @@ inside the container. Users can connect to this server in two ways:
576
576
The VNC server is listening to port 5900, you can use a VNC client and connect to it. Feel free to map port 5900 to
577
577
any free external port that you wish.
578
578
579
- The internal 5900 port remains the same because that is the configured port for the VNC server running inside the container.
579
+ The internal 5900 port remains the same because that is the configured port for the VNC server running inside the container.
580
+ You can override it with the ` VNC_PORT ` environment variable in case you want to use ` --net=host ` .
580
581
581
582
Here is an example with the standalone images, the same concept applies to the node images.
582
583
``` bash
You can’t perform that action at this time.
0 commit comments