Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker部署思源笔记,文件存储位置 #4809

Closed
tangjiahao2001 opened this issue May 7, 2022 · 1 comment
Closed

docker部署思源笔记,文件存储位置 #4809

tangjiahao2001 opened this issue May 7, 2022 · 1 comment

Comments

@tangjiahao2001
Copy link

docker run --name siyuan -it -d --restart=always -v /data/SiYuan:/root/Documents/SiYuan -p 6806:6806 b3log/siyuan
使用上面代码部署的时候“-v /data/SiYuan:/var/SiYuan”并不会起作用,无论是在/data/SiYuan目录还是在/root/Documents/SiYuan目录(此目录找不到)均没有找到思源笔记存放的目录,但是可以正常地使用,不知笔记到底是存放在那个目录下?

@88250
Copy link
Member

88250 commented May 7, 2022

你好,默认是在容器 /root/Documents/SiYuan 下,如果删除容器数据会丢失。

所以必须挂卷,然后通过内核启动参数 --workspace 指定到卷路径。

@88250 88250 closed this as completed May 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants