通过VNC访问docker容器的图形界面

https://hub.docker.com/r/dorowu/ubuntu-desktop-lxde-vnc/
https://github.com/fcwu/docker-ubuntu-vnc-desktop

docker-ubuntu-vnc-desktop

From Docker Index

docker pull dorowu/ubuntu-desktop-lxde-vnc

Build yourself

git clone https://github.com/fcwu/docker-ubuntu-vnc-desktop.git
docker build --rm -t dorowu/ubuntu-desktop-lxde-vnc docker-ubuntu-vnc-desktop

Run

docker run -it --rm -p 8080:80 dorowu/ubuntu-desktop-lxde-vnc
也可以使用命令(VNC Viewer设置密码):docker run -p 6080:80 -p 5900:5900 -e VNC_PASSWORD=mypassword dorowu/ubuntu-desktop-lxde-vnc

浏览器 http://127.0.0.1:8080/

你可能感兴趣的:(程序员)