docker-ubuntu-vnc-desktop

根据我这篇博文找到的

https://blog.csdn.net/sinat_16643223/article/details/115408525

https://hub.docker.com/r/ct2034/vnc-ros-kinetic-full

docker-ubuntu-vnc-desktop

 

Docker image to provide HTML5 VNC interface to access ROS kinetic on Ubuntu 16.04 with the LXDE desktop environment.

Quick Start

Run the docker image and open port 6080

docker run -it --rm -p 6080:80 ct2034/vnc-ros-kinetic-full

Browse http://127.0.0.1:6080/

 

Connect with VNC Viewer and protect by VNC Password

Forward VNC service port 5900 to host by

docker run -it --rm -p 6080:80 -p 5900:5900 ct2034/vnc-ros-kinetic-full

Now, open the vnc viewer and connect to port 5900. If you would like to protect vnc service by password, set environment variable VNC_PASSWORD, for example

docker run -it --rm -p 6080:80 -p 5900:5900 -e VNC_PASSWORD=mypassword ct2034/vnc-ros-kinetic-full

A prompt will ask password either in the browser or vnc viewer.

Mount directory

Mount host directory to docker using

docker run -v <your directory>:/mnt/ -it --rm -p 6080:80 ct2034/vnc-ros-kinetic-full

Troubleshooting and FAQ

  1. boot2docker connection issue, https://github.com/fcwu/docker-ubuntu-vnc-desktop/issues/2
  2. Screen resolution is fitted to browser's window size when first connecting to the desktop. If you would like to change resolution, you have to re-create the container

License

See the LICENSE file for details.

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值