docker compose部署一个ubuntu桌面环境
version: "3"
services:
ubuntu-d:
container_name: ubuntu-d
image: dorowu/ubuntu-desktop-lxde-vnc
hostname: ubuntu_d
ports:
- 50080:80
- 55900:5900
restart: on-failure:3
volumes:
- /home/ha/data/docker/ubuntu-desktop-lxde-vnc/dev/shm:/dev/shm
environment:
- VNC_PASSWORD=123456
docker run -id \
-p 50080:80 \
-p 55900:5900 \
-e VNC_PASSWORD=123456 \
--name=ubuntu-desktop-lxde-vnc \
-h ubuntu_d \
-v /home/ha/data/docker/ubuntu-desktop-lxde-vnc/dev/shm:/dev/shm \
dorowu/ubuntu-desktop-lxde-vn
标签:compose,vnc,dev,desktop,桌面环境,lxde,ubuntu,docker
From: https://www.cnblogs.com/wszzn/p/18140645