vncview 使用简单总结
vncview 结合docker 使用总结
docker镜像:
- consol/centos-xfce-vnc: Centos7 with Xfce4 UI session
- consol/ubuntu-xfce-vnc: Ubuntu with Xfce4 UI session
- consol/centos-icewm-vnc: Centos7 with IceWM UI session
- consol/ubuntu-icewm-vnc: Ubuntu with IceWM UI session
我们使用第一个Centos7 with Xfce4 UI session
启动:docker run -d -p 5901:5901 -p 6901:6901 consol/centos-xfce-vnc
容器使用bash 启动:
docker run -it -p 5901:5901 -p 6901:6901 consol/centos-xfce-vnc bash
客户端连接端口:
VNC viewer localhost:5901
页面连接地址
noVNC HTML5 full client: http://localhost:6901/vnc.html
密码:vncpassword
免去密码登陆:http://192.168.71.129:6901/?password=vncpassword/
在容器中安装自己的软件:
docker run -it --user 0 -p 6911:6901 consol/centos-xfce-vnc
设置自己的密码:
docker run -it -p 5901:5901 -p 6901:6901 -e VNC_PW=my-pw consol/centos-xfce-vnc
设置分辨率:
docker run -it -p 5901:5901 -p 6901:6901 -e VNC_RESOLUTION=800x600 consol/centos-xfce-vnc
效果图: