文章目录

异常说明

情景还原: 用docker拉取jenkins最新版本 ​​docker pull jenkins/jenkins:lts​​报了这个错误:

Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker

一通百度,发现原来是dns服务器的错误,把服务器改成8.8.8.8或者114.114.114.114即可

具体做法:

​vim /etc/sysconfig/network-scripts/ifcfg-ens33 ​

Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker_jenkins

​vim /etc/resolv.conf ​​ 也加上这行

Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker_jenkins_02

重启网络,​​systemctl restart network​

再来看下,ok啦:

Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker_docker_03


大功告成!!