当前位置:   article > 正文

CentOS7的docker下载下来启动失败问题(Job for docker.service failed because the control process exited with)

ob for docker.service failed because the control process exited with error c

CentOS7的docker下载下来启动失败问题(Job for docker.service failed because the control process exited with)

问题

  1. 执行:systemctl start docker

  2. 会出现的错误:Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.

    image-20210409001836750

  3. ps如果不解决会出现

    Cannot connect to the Docker daemonatunix:///var/run/docker.sock.Is the docker daemon running?

    image-20210409002136357

解决方法

  1. vim /etc/sysconfig/docker-storage

    将配置文件修改为:DOCKER_STORAGE_OPTIONS="--selinux-enabled --log-driver=journald --signature-verification=false"

  2. vim /etc/docker/daemon.json

    写入指定参数:{ "storage-driver": "devicemapper" }

  3. 然后重启docker服务:systemctl restart docker

    image-20210409002811849

注意

这里第一步是修改,第二步是写入。

docker自启:systemctl enable docker

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/代码探险家/article/detail/978480
推荐阅读
相关标签
  

闽ICP备14008679号