ubuntu容器

新版ubuntu容器

Tip

网页使用3000端口,必须使用https

setup.sh
#!/bin/bash

name=webtop-ubuntu

docker rm -f ${name}

docker run -d \
--name=${name} \
--security-opt seccomp=unconfined \
-e PUID=1000 \
-e PGID=1000 \
-e TZ=Asia/Shanghai \
--shm-size="1gb" \
--network=host \
--restart=always \
-e SUBFOLDER=/ \
-e TITLE=Webtop \
-e CUSTOM_USER=user \
-e PASSWORD=password \
-v ./data:/config \
-v /var/run/docker.sock:/var/run/docker.sock \
lscr.io/linuxserver/webtop:ubuntu-kde

旧版ubuntu容器

Tip

网页使用6080端口

docker-compose.yaml
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
docker-compose.yaml
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