侧边栏壁纸
博主头像
李先生ol 博主等级

行动起来,活在当下

  • 累计撰写 16 篇文章
  • 累计创建 11 个标签
  • 累计收到 0 条评论

目 录CONTENT

文章目录

CD2 commpose代码

李先生ol
2024-10-16 / 0 评论 / 0 点赞 / 5 阅读 / 0 字
version: "2.1"
services:
  cloudnas:
    image: cloudnas/clouddrive2:latest
    container_name: clouddrive2
    environment:
       - TZ=Asia/Shanghai
       - CLOUDDRIVE_HOME=/Config
    volumes:
      - /share/docker/cd2/cloudnas:/CloudNAS:shared
      - /share/docker/cd2/config:/Config
    devices:
      - /dev/fuse:/dev/fuse
    restart: unless-stopped
    pid: "host"
    privileged: true #or you can try capp_add -SYS_ADMIN
    #cap_add: #SYS_ADMIN cap may fail on some OSes, use privileged: true instead
    # - SYS_ADMIN
    network_mode: "host" #if network_mode doesn't work, use port mapping
    #ports:
    #   - 19798:19798

0

评论区