docker pull centos 遇到 Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: TLS handshake timeout

安装Docker for Windows 后,win + x 进入 windows powershell 使用命令 docker search centos 

接着 拉取 centos ,敲下命令: docker pull centos 后 过了一会儿 报错了,错误如下:

 查找了蛮多资料,都没有解决。发现大多数都是说改为国内镜像,由于docker 升级了,界面已经不一样,没找着资料里的界面。

最后打开 settings 逐个查看,发现了修改镜像地址的json ,然后在 https://www.daocloud.io/mirror#accelerator-doc 这个站点找到一个镜像地址,填入restart ,问题得到解决。

docker 的版本在图里有。填入的镜像链接为:http://f1361db2.m.daocloud.io

重启 docker 后 拉取成功,如下图:

 记录一下,希望对有需要的人有帮助!

猜你喜欢

转载自www.cnblogs.com/leeke/p/12649677.html