docker复位拉取镜像connection失败的问题

docker pull 时提示

docker pull ubuntu:16.04
Trying to pull repository docker.io/library/ubuntu ... 
Get https://registry-1.docker.io/v2/library/ubuntu/manifests/sha256:dd7808d8792c9841d0b460122f1acf0a2dd1f56404f8d1e56298048885e45535: Get https://auth.docker.io/token?scope=repository%3Alibrary%2Fubuntu%3Apull&service=registry.docker.io: read tcp *.*.*.*:41348->50.17.62.194:443: read: connection reset by peer

输入 dig auth.docker.io 查看可用ip
image

在host中配置即可 registry-1.docker.io auth.docker.io
image

posted @ 2021-07-11 18:35  RainbowMagic  阅读(148)  评论(0)    收藏  举报