find /mnt -type d -iname "cloudshare"
/mnt/dm-2/.ugreen_nas/82095/docker/clouddrive2/Config
cd /etc/init.d
vi mountshare
#!/bin/sh /etc/rc.common
START=99
start(){
for num in $(seq 1 60); do
if [ "$(mount | grep -c /dev/dm-2)" -gt 0 ]; then
break
fi
sleep 1
done
mount --make-shared /mnt/dm-2
echo "myscript is start"
}
stop(){
echo "myscript is stop"
}
restart(){
echo "myscript is restart"
}
chmod +x mountshare
./mountshare enable
reboot
docker run -d --name clouddrive2 --privileged=true --restart=always --device /dev/fuse:/dev/fuse -v /mnt/dm-2/.ugreen_nas/82095/docker/clouddrive2/cloudshare/:/cloudshare:shared -v /mnt/dm-2/.ugreen_nas/82095/docker/clouddrive2/Config:/Config -p 19798:19798 -e TZ=Asia/Shanghai -e CLOUDDRIVE_HOME=/Config cloudnas/clouddrive2-unstable:latest
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于