标题: 安装完docker,拉取镜像报错Unable to find image ‘hello-world:latest‘ [打印本页] 作者: 九天猎人 时间: 10 小时前 标题: 安装完docker,拉取镜像报错Unable to find image ‘hello-world:latest‘ 安装完docker后测试是否成功安装,拉取hello-world镜像进行测试
报以下错误
Unable to find image 'hello-world:latest' locally
docker: Error response from daemon: Get "https://registry-1.docker.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers).
See 'docker run --help'.
复制代码
Unable to find image 'hello-world:latest' locally
docker: Error response from daemon: Get "https://registry-1.docker.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers).
See 'docker run --help'.
刚开始以为是权限问题
直接把daemon.json文件加权限 ,照旧报错
[root@localhost docker]# chmod 777 daemon.json
[root@localhost docker]# sudo systemctl daemon-reload
[root@localhost docker]# sudo systemctl restart docker
[root@localhost docker]# docker run hello-world
Unable to find image 'hello-world:latest' locally
docker: Error response from daemon: Get "https://registry-1.docker.io/v2/": dial tcp 108.160.166.137:443: i/o timeout (Client.Timeout exceeded while awaiting headers).
See 'docker run --help'.