删除docker容器后,重新run,文档都没了。数据是挂载外面的
请按照一下格式提交issue,谢谢!
-
你当前使用的是哪个版本的 MinDoc(
godoc_linux_amd64 version)? registry.cn-hangzhou.aliyuncs.com/mindoc/mindoc:v2.0 -
你当前使用的是什么操作系统? Cetos 7
-
你是如何操作的? 我将原来的镜像删除,重新拉镜像启动,挂载的还是原来的文件夹 docker run --name=mindoc --restart=always -v /data/mindoc/uploads:/mindoc/uploads -v /data/mindoc/database:/data/database -e MINDOC_DB_ADAPTER=sqlite3 -e MINDOC_DB_DATABASE=./database/mindoc.db -e MINDOC_CACHE=true -e MINDOC_CACHE_PROVIDER=file -e MINDOC_ENABLE_EXPORT=true -p 12000:8181 -d registry.cn-hangzhou.aliyuncs.com/mindoc/mindoc:v2.0
-
你期望得到什么结果? 数据不会丢失
-
当前遇到的是什么结果? 数据丢失了,所有文档都没了
数据库没挂出来,删容器就没了……
Sent from my Mi phone Oct 26, 2021 17:10 wrote on xuweihao @.***>:
请按照一下格式提交issue,谢谢!
-
你当前使用的是哪个版本的 MinDoc(godoc_linux_amd64 version)? registry.cn-hangzhou.aliyuncs.com/mindoc/mindoc:v2.0
-
你当前使用的是什么操作系统? Cetos 7
-
你是如何操作的? 我将原来的镜像删除,重新拉镜像启动,挂载的还是原来的文件夹 docker run --name=mindoc --restart=always -v /data/mindoc/uploads:/mindoc/uploads -v /data/mindoc/database:/data/database -e MINDOC_DB_ADAPTER=sqlite3 -e MINDOC_DB_DATABASE=./database/mindoc.db -e MINDOC_CACHE=true -e MINDOC_CACHE_PROVIDER=file -e MINDOC_ENABLE_EXPORT=true -p 12000:8181 -d registry.cn-hangzhou.aliyuncs.com/mindoc/mindoc:v2.0
-
你期望得到什么结果? 数据不会丢失
-
当前遇到的是什么结果? 数据丢失了,所有文档都没了
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/mindoc-org/mindoc/issues/743, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABO7QIB3SGEF2UMK2NFFK63UIZWBJANCNFSM5GXIS23Q. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
MINDOC_DB_DATABASE=./database/mindoc.db 这个不是么?
------------------ 原始邮件 ------------------ 发件人: "mindoc-org/mindoc" @.>; 发送时间: 2021年10月27日(星期三) 凌晨4:34 @.>; @.@.>; 主题: Re: [mindoc-org/mindoc] 删除docker容器后,重新run,文档都没了。数据是挂载外面的 (Issue #743)
数据库没挂出来,删容器就没了……
Sent from my Mi phone Oct 26, 2021 17:10 wrote on xuweihao @.***>:
请按照一下格式提交issue,谢谢!
-
你当前使用的是哪个版本的 MinDoc(godoc_linux_amd64 version)? registry.cn-hangzhou.aliyuncs.com/mindoc/mindoc:v2.0
-
你当前使用的是什么操作系统? Cetos 7
-
你是如何操作的? 我将原来的镜像删除,重新拉镜像启动,挂载的还是原来的文件夹 docker run --name=mindoc --restart=always -v /data/mindoc/uploads:/mindoc/uploads -v /data/mindoc/database:/data/database -e MINDOC_DB_ADAPTER=sqlite3 -e MINDOC_DB_DATABASE=./database/mindoc.db -e MINDOC_CACHE=true -e MINDOC_CACHE_PROVIDER=file -e MINDOC_ENABLE_EXPORT=true -p 12000:8181 -d registry.cn-hangzhou.aliyuncs.com/mindoc/mindoc:v2.0
-
你期望得到什么结果? 数据不会丢失
-
当前遇到的是什么结果? 数据丢失了,所有文档都没了
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub<https://github.com/mindoc-org/mindoc/issues/743>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABO7QIB3SGEF2UMK2NFFK63UIZWBJANCNFSM5GXIS23Q>. Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.
/data/mindoc/database:/data/database,这句话不是挂载出来了么???里面竟然是空的。
MINDOC_DB_DATABASE 应该指向 /data/database/mindoc.db 我知道了。。你们文档提供的命令有问题