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.
不要慌
使用命令dockerd查看原因
翻译一下
unable to configure the Docker daemon with file /etc/docker/daemon.json: invalid character '#' looking for beginning of value
大概是我配置文件带了# 导致报错
修改配置文件
# daemon.json文件加入以下内容,如果已经存在文件,有配置就不需要再添加
{
"registry-mirrors": ["https://mirrors.ustc.edu.cn"]
}
# 中科大
https://mirrors.ustc.edu.cn
这是修改后的
{
"registry-mirrors": ["https://mirrors.ustc.edu.cn"]
}
# 中科大
https://mirrors.ustc.edu.cn
重新保存
然后重新启动
systemctl start docker
systemctl restart docker
恢复正常