Docker问题-启动的mongo等容器启动失败

2017-04-06  本文已影响0人  Godtoy
image.png

启动Mariadb或者Mongo的,run了发现容器就自己死掉了
下面是日志信息

$docker logs db-1

chown: changing ownership of '/proc/1/fd/1': Permission denied
chown: changing ownership of '/proc/1/fd/2': Permission denied
about to fork child process, waiting until server is ready for connections.
forked process: 19
ERROR: child process failed, exited with error number 1
chown: changing ownership of '/proc/1/fd/1': Permission denied
chown: changing ownership of '/proc/1/fd/2': Permission denied
about to fork child process, waiting until server is ready for connections.
forked process: 18
ERROR: child process failed, exited with error number 1

找了半天解决方案如下:
1.http://www.cnblogs.com/YDDMAX/p/6184100.html
2.在mongo官方文档中,也有这样得一行说明

image.png

在关闭了SELINUX后,终于跑起来啦。


image.png

WHY?

我一直都有一个只想解决问题,从不去知所以然,不过这次我要去看看所以然了

上一篇下一篇

猜你喜欢

热点阅读