Docker拉取镜像报错Error response from daemon: Head “https://registry-1...“connect: network is unreachable
docker 拉取镜像报错 connect: network is unreachable,解决方法。DNS添加8.8.8.8
·
一、环境描述
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即可成功拉取镜像
更多推荐
已为社区贡献1条内容
所有评论(0)