一般会使用如下命令,进行docker重启。

sudo systemctl daemon-reload
sudo systemctl restart docker

重启失败时,会提示:Job for docker.service failed because the control process exited with error code.
See "systemctl status docker.service" and "journalctl -xeu docker.service" for details.

此时要检查刚刚进行的操作,如我们就是修改 /etc/docker/daemon.json 文件时,格式写错了。

改正确就好了。

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐