File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,11 @@ if [ "${START_XVFB}" = true ] ; then
21
21
X11VNC_OPTS=-usepw
22
22
fi
23
23
24
+ if [ ! -z $VNC_VIEW_ONLY ]; then
25
+ echo " Starting VNC server with viewonly option"
26
+ X11VNC_OPTS=${X11VNC_OPTS} -viewonly
27
+ fi
28
+
24
29
for i in $( seq 1 10)
25
30
do
26
31
sleep 1
Original file line number Diff line number Diff line change @@ -604,6 +604,8 @@ RUN x11vnc -storepasswd <your-password-here> /home/seluser/.vnc/passwd
604
604
605
605
If you want to run VNC without password authentication you can set the environment variable ` VNC_NO_PASSWORD=1 ` .
606
606
607
+ If you want to run VNC in view-only mode you can set the environment variable ` VNC_VIEW_ONLY=1 ` .
608
+
607
609
### Using your browser (no VNC client is needed)
608
610
609
611
This project uses [ noVNC] ( https://github.com/novnc/noVNC ) to allow users inspect visually container activity with
You can’t perform that action at this time.
0 commit comments