docker一键安装debian/ubuntu桌面环境LXDE+VNC+Firefox

好处不用说,可以在linux服务器版本使用chrome和firefox浏览器,步骤如下:

1.拉取镜像 镜像大概有1.3G左右

docker pull dorowu/ubuntu-desktop-lxde-vnc

使用docker images 查看镜像id

2.运行容器

docker run -dit --name ubuntu -p 6080:80 -p 5900:5900 -e VNC_PASSWORD=iloveyou -v /dev/shm:/dev/shm dorowu/ubuntu-desktop-lxde-vnc

VNC_PASSWORD 这里设置登录密码

这里的容器有两个端口
6080:是web版的vnc,可以在浏览器上直接访问桌面环境
5900:是使用客户端工具连接的端口

如果要修改密码需先停止容器再删除容器再重新运行容器

docker stop [容器名/ID] && docker rm [容器名/ID] && docker rmi [镜像名/ID]

VNC客户端推荐免费的 TightVNC: VNC-Compatible Free Remote Desktop Software

桌面环境使用的lxde超轻桌面

linux桌面环境:gnome/Xfce:轻量桌面环境/MATE/LXDE(LXQt):超轻桌面

猜你喜欢

转载自blog.csdn.net/jamesdodo/article/details/136524507