Get https://registry.example.net:5000/v2/: dial tcp: lookup registry.example.net on 127.0.1.1:53: no such host

在push镜像到本地仓库时报了上面这个错误docker pull registry.example.net:5000/lyc666/httpd:v1

然后根据网上的资料重启了一下docker(systemctl restart  docker),结果还是没用

最后仔细检查才发现是自己太粗心了,未在/etc/hosts上编辑registry.example.net的具体ip地址

Get https://registry.example.net:5000/v2/: dial tcp: lookup registry.example.net on 127.0.1.1:53: no

增加了上面这一行之后问题解决。。。

Get https://registry.example.net:5000/v2/: dial tcp: lookup registry.example.net on 127.0.1.1:53: no

相关文章: