docker compose部署一个ubuntu桌面环境

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
posted @ 2024-04-17 14:22  武胜造纸农  阅读(75)  评论(0)    收藏  举报