doc: update usage

This commit is contained in:
DCsunset 2020-02-02 04:03:49 -08:00
parent ec883e62ab
commit 6172758722

View file

@ -5,10 +5,16 @@ Xfce desktop environment.
## Usage ## Usage
Simple usage:
``` ```
docker run -d -p 5900:5900 -e VNC_PASSWD=password dcsunset/ubuntu-vnc docker run -d -p 5900:5900 -p 6080:6080 -e VNC_PASSWD=password dcsunset/ubuntu-vnc
``` ```
Then visit http://localhost:6080 to visit noVNC UI.
Or you can use a different VNC client (like TigerVNC client)
and connect to localhost:5900.
If `VNC_PASSWD` is not set, If `VNC_PASSWD` is not set,
then the security type of vncserver is set to None, then the security type of vncserver is set to None,
it is **insecure** when exposing the container on the Internet. it is **insecure** when exposing the container on the Internet.
@ -25,6 +31,7 @@ only the following applications are installed by default:
* Xfce desktop * Xfce desktop
* TigerVNC server * TigerVNC server
* noVNC
* Vim * Vim
* Chromium browser * Chromium browser