使用centos搭建docker启动报错Job for docker.service failed。。。。

根据老师课程跟着操作,在centos搭建docker。
一开始一切顺利,等到配置完镜像,重启docker就报错了
重启docker报错信息为:
Job for docker.service failed because the control process exited with error code. See “systemctl status docker.service” and “journalctl -xe” for details.
启动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.
通过网上查询结果:
问题产生原因:daemon文件后缀格式造成重启/启动失败
解决方案为:
1、进入docker目录下:cd /etc/docker
2、修改daemon文件后缀:mv daemon.json daemon.conf
3、重启/启动docker:systemctl start docker

关闭