deepin15.11下docker启动不了mongo
Tofloor
poster avatar
jerry979
deepin
2020-03-07 10:04
Author
各位大佬们好,我在用docker部署mongo时遇到了问题,日志如下:
  1. 2020-03-06T18:00:54.278+0000 I  CONTROL  [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'
  2. 2020-03-06T18:00:54.279+0000 I  CONTROL  [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=73eb5d2b41f2
  3. 2020-03-06T18:00:54.279+0000 I  CONTROL  [initandlisten] db version v4.2.3
  4. 2020-03-06T18:00:54.279+0000 I  CONTROL  [initandlisten] git version: 6874650b362138df74be53d366bbefc321ea32d4
  5. 2020-03-06T18:00:54.279+0000 I  CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.1.1  11 Sep 2018
  6. 2020-03-06T18:00:54.279+0000 I  CONTROL  [initandlisten] allocator: tcmalloc
  7. 2020-03-06T18:00:54.279+0000 I  CONTROL  [initandlisten] modules: none
  8. 2020-03-06T18:00:54.279+0000 I  CONTROL  [initandlisten] build environment:
  9. 2020-03-06T18:00:54.279+0000 I  CONTROL  [initandlisten]     distmod: ubuntu1804
  10. 2020-03-06T18:00:54.279+0000 I  CONTROL  [initandlisten]     distarch: x86_64
  11. 2020-03-06T18:00:54.279+0000 I  CONTROL  [initandlisten]     target_arch: x86_64
  12. 2020-03-06T18:00:54.279+0000 I  CONTROL  [initandlisten] options: { net: { bindIp: "*" } }
  13. 2020-03-06T18:00:54.281+0000 I  STORAGE  [initandlisten] exception in initAndListen std::exception: open: Permission denied, terminating
  14. 2020-03-06T18:00:54.281+0000 I  CONTROL  [initandlisten] now exiting
  15. 2020-03-06T18:00:54.281+0000 I  CONTROL  [initandlisten] shutting down with code:100
Copy the Code
环境:
deepin15.11
Docker version 19.03.7, build 7141c199a2



我在网上发现其他人遇到了跟我一样的问题,但是貌似没有解决
https://github.com/docker-library/mongo/issues/312
https://forums.docker.com/t/mongo-container-doesnt-start/85974

发此贴求助各位大佬

Reply Favorite View the author
All Replies
avatar
jerry979
deepin
2020-03-08 08:56
#1
我个人感觉应该是deepin内核和docker不兼容的问题。我在ubuntu18.04上跑是没有问题的,所以这个问题可能暂时无解。
Reply View the author
avatar
thepoy
deepin
2020-03-08 15:51
#2
没发现有什么问题,能正常使用


Reply View the author
avatar
139******14
deepin
2020-03-08 20:30
#3
没发现问题 直接下载就正常启动 测试连接查询也ok
我的是15.11
Reply View the author
avatar
jerry979
deepin
2020-03-08 21:44
#4
感谢楼上两位,想到我之前好像升级了libc6为unstable版本的,不知道这个有没关系。也许需要重装系统才能解决了。
Reply View the author
avatar
f0n97lo
deepin
2020-03-08 23:13
#5
2020-03-06T18:00:54.281+0000 I  STORAGE  [initandlisten] exception in initAndListen std::exception: open: Permission denied, terminating
我觉得你可以看看docker daemon的服务日志,确认下这个错误。
Reply View the author
avatar
jerry979
deepin
2020-03-09 19:42
#6
https://bbs.deepin.org/post/189525
2020-03-06T18:00:54.281+0000 I  STORAGE   exception in initAndListen std::exception: open: Permissio ...

折腾了半天都不知道怎么弄,放弃了。还是用ubuntu server虚拟机跑好了。俗话说得好,重装解决99%的问题哈哈哈哈哈哈。
Reply View the author
avatar
f0n97lo
deepin
2020-03-10 01:11
#7
https://bbs.deepin.org/post/189525
折腾了半天都不知道怎么弄,放弃了。还是用ubuntu server虚拟机跑好了。俗话说得好,重装解决99%的问题哈 ...

也行吧。
Reply View the author
avatar
jiangtao69039
deepin
2020-03-11 23:03
#8
我可以,
用sudo 执行试试
Reply View the author
avatar
jerry979
deepin
2020-03-12 00:26
#9
https://bbs.deepin.org/post/189525
我可以,
用sudo 执行试试

我用sudo也不行。我佛了,重装系统没用。还是安心用虚拟机跑吧
Reply View the author
avatar
jerry979
deepin
2020-03-12 03:03
#10
我猜可能会有以下的原因:
1. 安装docker的方式不对,我一开始加了第三方源安装,不是从deepin的源里面安装docker,后面即使卸载了,也可能有残留
2. 磁盘分区的权限不对。我给很多文件夹单独挂了磁盘。
3. 用户组的设置,我在网上各种地方找了教材,胡乱输入了一些命令,以至于不知道输入了些什么。

害,我毕竟也只是一个刚接触linux的不久的新手,用docker安装mongo纯粹是为了跑sharelatex,用来自己写latex(有时可以和同学一起写)。我毕竟不是开发者,不再折腾了,谢谢关系过这个帖子的人。
Reply View the author
avatar
jerry979
deepin
2020-03-14 23:22
#11
最终我又重装了系统,按照以下步骤操作
1. 直接从deepin的库中安装docker-ce
2. 不设置用户组,只用sudo

终于,问题解决。
Reply View the author