[root@VM-24-10-centos yongjie_k8s]# systemctl enable docker --now
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 the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
启动和重启docker服务都会报错如上
最后排查发现daemon.json加入阿里云镜像源的时候复制粘贴缺失导致
vim /etc/docker/daemon.json
vim /etc/docker/daemon.json
{
"registry-mirrors": ["https://elzciopd.mirror.aliyuncs.com"]
}
# 重载配置
sudo systemctl daemon-reload
# 重启docker服务
sudo systemctl restart docker
至此,问题解决