docker.service: Failed with result ‘exit-code‘
Posted 正怒月神
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了docker.service: Failed with result ‘exit-code‘相关的知识,希望对你有一定的参考价值。
docker.service: Failed with result 'exit-code'
查看日志:
$ sudo dockerd --debug
看到是我们的daemon.json文件有问题
打开daemon.json
sudo vim /etc/docker/daemon.json
改为
{
"registry-mirrors": ["http://hub-mirror.c.163.com"]
}
重启
sudo service docker restart
以上是关于docker.service: Failed with result ‘exit-code‘的主要内容,如果未能解决你的问题,请参考以下文章
docker报错:Failed to restart docker.service: Unit not found.
docker.service: Failed with result ‘exit-code‘
CentOS7安装docker 启动失败:Job for docker.service failed... 解决办法
Failed to start docker.service: Unit not found.
Job for docker.service failed because the control process exited with error
docker 报错: Job for docker.service failed because the control process exited with error code. See &qu