启动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官方文档中,也有这样得一行说明
在关闭了SELINUX后,终于跑起来啦。
image.png
WHY?
我一直都有一个只想解决问题,从不去知所以然,不过这次我要去看看所以然了
网友评论