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

2023-05-16

XTDrone的docker仿真镜像就是基于这个做的。

转载自:https://blog.csdn.net/spylyt/article/details/79944772?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.control&dist_request_id=1328680.37302.16162977687057645&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.control

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


   
  1. git clone https://github.com/fcwu/docker-ubuntu-vnc-desktop.git

  2. 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/
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

通过VNC访问docker容器的图形界面 的相关文章

随机推荐