Error response from daemon: Get https://registry-1.docker.io/v2/library/ubuntu/manifests/2.04: Get https://auth.docker.io/token?scope=repository%3Alibrary%2Fubuntu%3Apull&serviceregistry.docker.io: net/http: TLS handshake timeout

报错:

[root@localhost /]# sudo docker pull ubuntu
Error response from daemon: Get https://registry-1.docker.io/v2/library/ubuntu/manifests/2.04: Get https://auth.docker.io/token?scope=repository%3Alibrary%2Fubuntu%3Apull&serviceregistry.docker.io: net/http: TLS handshake timeout


解决报错Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: TLS handshaketimeout


解决方式:

第1步:通过dig @114.114.114.114 registry-1.docker.io找到可用IP地址

dig @114.114.114.114 registry-1.docker.io

    IP地址非固定可能会变动,所以需要多试几次(几个IP)


解决报错Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: TLS handshaketimeout


第二步:修改/etc/hosts强制docker.io相关的域名解析到其它可用IP

vi /etc/hosts


解决报错Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: TLS handshaketimeout


第三步:保存配置文件后进行多次重试可以成功下载镜像


解决报错Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: TLS handshaketimeout


第四步:验证是否成功


解决报错Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: TLS handshaketimeout



上一篇:判断百度地图内的坐标是否在可视范围内以便加载对应

下一篇:使用frp进行内网穿透

评论列表
发表评论
称呼
邮箱
网址
验证码(*)
热评文章
相关阅读