服务器重启后,docker无法启动
1、docker images,提示如下错误
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
经查是重启服务器后,没有启动docker
2、尝试启动docker 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.
3、解决方法:
cd /etc/docker
mv daemon.json daemon.conf
systemctl restart docker
docker images
启动成功,完美解决。