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
版权归属:
李先生ol
许可协议:
本文使用《署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)》协议授权
评论区