docker配置镜像加速后报错 系统 CentOS7

参考菜鸟教程配置的却报错

报错

[root@VM_0_14_centos ~]# sudo systemctl start docker
Job for docker.service failed because start of the service was attempted too often. See "systemctl status docker.service" and "journalctl -xe" for details.
To force a start use "systemctl reset-failed docker.service" followed by "systemctl start docker.service" again.

查看

[root@VM_0_14_centos ~]# cd /etc/docker
[root@VM_0_14_centos docker]# ls
daemon.json key.json

解决方法

将daemon.json改为daemon.conf

mv daemon.json  daemon.conf

重新启动

systemctl restart docker

查看版本

原文地址:https://www.cnblogs.com/ychun/p/14403771.html