SuperNG6 / Docker-qBittorrent-Enhanced-Edition

Docker-qBittorrent-Enhanced-Edition
https://hub.docker.com/r/superng6/qbittorrentee
710 stars 73 forks source link

容器启动初始化时无视权限而直接修改,导致在无根容器主机中提示无权 #70

Closed Gloryandel closed 1 month ago

Gloryandel commented 1 month ago

Podman 无根容器中强制修改目录权限,希望略微做适配 image

容器内部权限是对应统一的 root,在无根容器中反而不需要修改 image

Gloryandel commented 1 month ago
services:
  qbittorrentee:
    image: superng6/qbittorrentee:latest
    container_name: qbittorrentee
    hostname: Arc
    ports:
      - 8080:8080 # WebUI
      - 6881:6881
      - 6881:6881/udp
    volumes:
       - ./config:/config
       - ./downloads:/downloads
    environment:
      - TZ=Asia/Shanghai
      - PUID=0
      - PGID=0
    restart: unless-stopped

无根容器反而希望以 root 运行,如果无 PUID 和 PGID 时默认以 root 就很好