美文网首页
Docker问题-启动的mongo等容器启动失败

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

作者: Godtoy | 来源:发表于2017-04-06 21:10 被阅读0次
    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?

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

    相关文章

      网友评论

          本文标题:Docker问题-启动的mongo等容器启动失败

          本文链接:https://www.haomeiwen.com/subject/ketcattx.html