当前位置:   article > 正文

centos7使用docker1.8.2_a dependency job for docker.service failed. see 'j

a dependency job for docker.service failed. see 'journalctl -xe' for details
  1. yum install docker-io或curl -sSL https://get.daocloud.io/docker | sh
  2. service docker start

    如果出现
    [root@localhost 桌面]# service docker start
    Starting docker (via systemctl):  Job for docker.service failed. See 'systemctl status docker.service' and 'journalctl -xn' for details. [失败]
    
    则有可能是防火墙开启的原因,可先关闭防火墙:
    service firewalld stop
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
  3. docker run hello-world

    出现错误
    “Cannot connect to the Docker daemon. Is 'docker -d' running on this host?”
    
    网上找到解决方式:http://blog.csdn.net/xu470438000/article/details/43704469
    
    执行:yum upgrade device-mapper-libs
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
  4. 再次执行:docker run hello-world

         INFO[0211] POST /v1.19/containers/create                
    ERRO[0211] Handler for POST /containers/create returned error: No such image: hello-world (tag: latest) 
    ERRO[0211] HTTP Error               
    • 1
    • 2
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家小花儿/article/detail/831802
推荐阅读
相关标签
  

闽ICP备14008679号