ubuntu容器

网页使用6080端口

version: '3.5'

services:
    ubuntu-xfce-vnc:
        container_name: xfce
        image: imlala/ubuntu-xfce-vnc-novnc:latest
        shm_size: "1gb"
        ports:
            - 5900:5900
            - 6080:6080
        environment: 
            - VNC_PASSWD=imlala
            - GEOMETRY=1280x720
            - DEPTH=32
        volumes: 
            - ./Downloads:/root/Downloads
            - ./Documents:/root/Documents
            - ./Pictures:/root/Pictures
            - ./Videos:/root/Videos
            - ./Music:/root/Music
        restart: unless-stopped

自己打包了个更新了源、安装了火狐、更改了时区的版本

dockerfile

FROM imlala/ubuntu-xfce-vnc-novnc
RUN sed -i 's/archive.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list && \
apt-get update && \
apt-get upgrade -y --fix-missing && \
apt-get install firefox -y
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
echo "Asia/Shanghai" > /etc/timezone
version: '3.5'

services:
    ubuntu-xfce-vnc:
        container_name: xfce
        image: registry.cn-hangzhou.aliyuncs.com/buyfakett/ubuntu-novnc
        shm_size: "1gb"
        ports:
            - 5900:5900
            - 6080:6080
        environment: 
            - VNC_PASSWD=imlala
            - GEOMETRY=1280x720
            - DEPTH=32
        volumes: 
            - ./Downloads:/root/Downloads
            - ./Documents:/root/Documents
            - ./Pictures:/root/Pictures
            - ./Videos:/root/Videos
            - ./Music:/root/Music
        restart: unless-stopped