fix
This commit is contained in:
@@ -12,4 +12,4 @@ RUN wget http://fpdownload.macromedia.com/get/flashplayer/pdc/11.2.202.635/insta
|
|||||||
ADD ./conf/xstartup /root/.vnc/xstartup
|
ADD ./conf/xstartup /root/.vnc/xstartup
|
||||||
RUN echo "xiaosong" | /usr/bin/vncpasswd -f > /root/.vnc/passwd
|
RUN echo "xiaosong" | /usr/bin/vncpasswd -f > /root/.vnc/passwd
|
||||||
EXPOSE 5901
|
EXPOSE 5901
|
||||||
ENTRYPOINT ["service", "vncserver", "start"]
|
CMD ["bash"]
|
||||||
|
|||||||
@@ -1,14 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Remote desktop service (VNC)
|
|
||||||
After=syslog.target network.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=forking
|
|
||||||
# Clean any existing files in /tmp/.X11-unix environment
|
|
||||||
ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill :1 > /dev/null 2>&1 || :'
|
|
||||||
ExecStart=/sbin/runuser -l root -c "/usr/bin/vncserver :1 -geometry 1280x720 -depth 24"
|
|
||||||
PIDFile=/root/.vnc/%H%i.pid
|
|
||||||
ExecStop=/bin/sh -c '/usr/bin/vncserver -kill :1 > /dev/null 2>&1 || :'
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
Reference in New Issue
Block a user