1、apt install fuse3 -y
2、mkdir -p /etc/systemd/system/docker.service.d
3、df -h
4、cat <<EOF > /etc/systemd/system/docker.service.d/clear_mount_prooagation_flags.conf [Service] MountFlags=shared EOF
5、1panel面板中容器-编排--创建编排 --编辑中输入
version: "2.1"
services:
cloudnas:
image: cloudnas/clouddrive2-unstable
container_name: clouddrive2
ports:
- "19798:19798"
environment:
- TZ=Asia/Shanghai
- CLOUDDRIVE_HOME=/Config
volumes:
- /dev/cd2/CloudNAS:/CloudNAS:shared
- /dev/cd2/Config:/Config
- /dev/cd2/media:/media:shared
devices:
- /dev/fuse:/dev/fuse
restart: unless-stopped
pid: "host"
privileged: true
network_mode: "host"