- Cannot connect to the Docker dae
- Cannot connect to the Docker dae
- Cannot connect to the Docker dae
- Cannot connect to the Docker dae
- Cannot connect to the Docker dae
- Cannot connect to the Docker dae
- Cannot connect to the Docker dae
- Cannot connect to the Docker dae
- Cannot connect to the Docker dae
- Cannot connect to the Docker dae
-
例如我查看版本信息
image.png
2.重启容器

- systemctl status docker 查看docker状态也发现错误:

最后解决问题方法是:
进入 /etc/docker,没有daemon.json文件就自己新建一个:
cd /etc/docker
编辑daemon.json文件:
加入这段代码:
{
"registry-mirrors": ["https://registry.docker-cn.com"]
}
然后重启docker:
systemctl restart docker.service
再使用docker命令时,就没有问题了
网友评论