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
3131 echo " Waiting for Xvfb..."
3232 done
3333
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}
3535else
3636 echo " Vnc won't start because Xvfb is configured to not start."
3737fi
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:
576576The VNC server is listening to port 5900, you can use a VNC client and connect to it. Feel free to map port 5900 to
577577any free external port that you wish.
578578
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 ` .
580581
581582Here is an example with the standalone images, the same concept applies to the node images.
582583``` bash
You can’t perform that action at this time.
0 commit comments