用 docker-compose 部署思源笔记时每次都会有报错:
Attaching to siyuan siyuan | W 2022/09/24 21:37:05 file.go:242: determines whether [/root/Documents/SiYuan] is a directory failed: [lstat /root/Documents/SiYuan: permission denied] siyuan | I 2022/09/24 21:37:05 working.go:111: siyuan | ___ ___ ___ ___ siyuan | / /\ ___ ___ /__/\ / /\ /__/\ siyuan | / /:/_ / /\ /__/| \ \:\ / /::\ \ \:\ siyuan | / /:/ /\ / /:/ | |:| \ \:\ / /:/\:\ \ \:\ siyuan | / /:/ /::\ /__/::\ | |:| ___ \ \:\ / /:/~/::\ _____\__\:\ siyuan | /__/:/ /:/\:\ \__\/\:\__ __|__|:| /__/\ \__\:\ /__/:/ /:/\:\ /__/::::::::\ siyuan | \ \:\/:/~/:/ \ \:\/\ /__/::::\ \ \:\ / /:/ \ \:\/:/__\/ \ \:\~~\~~\/ siyuan | \ \::/ /:/ \__\::/ ~\~~\:\ \ \:\ /:/ \ \::/ \ \:\ ~~~ siyuan | \__\/ /:/ /__/:/ \ \:\ \ \:\/:/ \ \:\ \ \:\ siyuan | /__/:/ \__\/ \__\/ \ \::/ \ \:\ \ \:\ siyuan | \__\/ \__\/ \__\/ \__\/ siyuan | I 2022/09/24 21:37:05 runtime.go:47: kernel is booting: siyuan | * ver [2.2.0] siyuan | * arch [amd64] siyuan | * runtime mode [prod] siyuan | * working directory [/opt/siyuan] siyuan | * read only [false] siyuan | * container [docker] siyuan | * database [ver=20220501] siyuan | * workspace directory [/home/siyuan/Documents/SiYuan, data 20 kB] siyuan | 2022/09/24 21:37:05 use the default workspace [/root/Documents/SiYuan] since the specified workspace [/home/siyuan/Documents/SiYuan] is not a dir siyuan | D 2022/09/24 21:37:05 conf.go:121: check device locale failed [detect: not detected], using default language [en_US] siyuan | I 2022/09/24 21:37:05 serve.go:79: kernel is booting [http://0.0.0.0:6806]
说无法确定 /root/Documents/SiYuan
是不是目录,结果最后还用做了目录,不是很理解
换了版本重装、换了容器卷都没用。
docker-compose.yml
如下:
version: '3' services: siyuan: image: b3log/siyuan:v2.2.0 container_name: siyuan restart: always volumes: - /drive/siyuan:/root/Documents/SiYuan command: [--resident=true,--workspace=/root/Documents/SiYuan,--ssl=true,--accessAuthCode=@Tom318830856815216619506@,--servePath=note.huajitom.cn] network_mode: "host"
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于