当前位置:   article > 正文

Docker拉取镜像报错Error response from daemon: Head “https://registry-1...“connect: network is unreachable_dial tcp [2600:1f18:2148:bc01:20a3:9c3e:d4a7:9fb]:

dial tcp [2600:1f18:2148:bc01:20a3:9c3e:d4a7:9fb]:443: connect: network is u

一、环境描述

docker已配置阿里云地址

docker pull命令后报错如下

Error response from daemon: Head "https://registry-1.docker.io/v2/library/nginx/manifests/1.20": dial tcp [2600:1f18:2148:bc01:20a3:9c3e:d4a7:9fb]:443: connect: network is unreachable

二、解决方法

发现是DNS有问题,配置/etc/resolv.conf

注销原有DNS地址,添加8.8.8.8

docker pull即可成功拉取镜像

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家自动化/article/detail/604799
推荐阅读
相关标签
  

闽ICP备14008679号