https://hub.docker.com/r/dorowu/ubuntu-desktop-lxde-vnc/
安装docker
#CentOS 6
rpm -iUvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum update -y
yum -y install docker-io
service docker start
chkconfig docker on
#CentOS 7、Debian、Ubuntu
curl -sSL https://get.docker.com/ | sh
systemctl start docker
systemctl enable docker
使用方法
docker pull dorowu/ubuntu-desktop-lxde-vnc
#拉取镜像
docker run -it --rm -p 6080:80 -p 5900:5900 -e VNC_PASSWORD=kenshin dorowu/ubuntu-desktop-lxde-vnc
#自定义密码启动 “VNC_PASSWORD=”后面跟着的就是密码
docker run -d --rm -p 6080:80 -p 5900:5900 -e VNC_PASSWORD=kenshin dorowu/ubuntu-desktop-lxde-vnc
#后台运行容器自定义密码启动
访问地址:
http://yourip:6080
VNC访问地址:http://yourip:5900