修改完这个文件 /etc/docker/daemon.json,后重新启动docker报错
systemctl daemon-reload
systemctl restart docker
sudo service docker restart
Redirecting to /bin/systemctl restart docker.service
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.
执行命令查看原因
dockerd
会发现
unable to configure the Docker daemon with file /etc/docker/daemon.json: invalid character '}' looking for beginning of object key string
基本上都是修改这个文件导致的
/etc/docker/daemon.json
网友评论