logo
tt's Note
  • 运维
    • 数据库
    • linux
    • vpn
    • 日志
    • 中间件
    • 服务
    • 监控
    • shell
    • windows
    • 语言
    • 云服务
    • 其他
  • 开发
    • 工具
  • 软件
    • 浏览器
    • 多端
    • win
    • mac
    • 网站
  • 项目
    • 效率工具
    • 兴趣
  • 脚本
    • jenkins
    数据库概览
    nextcloud网盘
    ubuntu容器
    mc服务器
    上一页nextcloud网盘下一页mc服务器

    网页使用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