赞
踩
由于我的Docker是装在虚拟机上,由于电脑长时间未关机太卡,于是今天重启了一下机器,但是Docker未重启,于是就执行了一遍systemctl restart docker.service
然后就出现了Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
通过systemctl status docker.service
查看docker状态
● docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)
Active: failed (Result: start-limit) since Fri 2020-10-09 17:49:21 CST; 37s ago
Docs: https://docs.docker.com
Process: 2559 ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock (code=exited, status=1/FAILURE)
Main PID: 2559 (code=exited, status=1/FAILURE)
Oct 09 17:49:18 CentOS systemd[1]: Failed to start Docker Application Container Engine.
Oct 09 17:49:18 CentOS systemd[1]: Unit docker.service entered failed state.
Oct 09 17:49:18 CentOS systemd[1]: docker.service failed.
Oct 09 17:49:21 CentOS systemd[1]: docker.service holdoff time over, scheduling restart.
Oct 09 17:49:21 CentOS systemd[1]: start request repeated too quickly for docker.service
Oct 09 17:49:21 CentOS systemd[1]: Failed to start Docker Application Container Engine.
Oct 09 17:49:21 CentOS systemd[1]: Unit docker.service entered failed state.
Oct 09 17:49:21 CentOS systemd[1]: docker.service failed.
查看状态发现提示无法启动Docker的程序引擎,此时就想到了前几天配置了一下镜像加速器 ,通过 vim /etc/docker/daemon.json
查看json是否有错误,果不其然单词拼错了
{ "registry-mirrors": [ "http://ovfftd6p.mirror.aliyuncs.com", "http://registry.docker-cn.com", "http://docker.mirrors.ustc.edu.cn", "http://hub-mirror.c.163.com" ], "insecure-registries": [ "registry.docker-cn.com", "docker.mirrors.ustc.edu.cn" ], "debug": true, "experimental": true }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。