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

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

异常说明


情景还原: 用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


1dc618a0ed9580ce8bfa6facb208c08f.png


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


5d4c6812c8535adbb050f4ddf2e1bce8.png


重启网络,systemctl restart network


再来看下,ok啦:

46a9d80a6e05e4e3b19d57a0ee70bcdf.png


大功告成!!


相关文章
|
5月前
Error: 0x800701bc WSL 2 ?????????????????? https://aka.ms/wsl2kernel
Error: 0x800701bc WSL 2 ?????????????????? https://aka.ms/wsl2kernel
|
9天前
|
缓存 IDE Linux
Internal error. Please report to https://jb.gg/ide/critical-startup-errors
Internal error. Please report to https://jb.gg/ide/critical-startup-errors
6 0
|
29天前
解决Error:All flavors must now belong to a named flavor dimension. Learn more at https://d.android.com
解决Error:All flavors must now belong to a named flavor dimension. Learn more at https://d.android.com
22 5
|
5月前
|
Ubuntu Linux
E:The repository ‘https://mirrors.aliyun.com/docker-ce/linux/ubuntu una Release‘ does not have a Rel
E:The repository ‘https://mirrors.aliyun.com/docker-ce/linux/ubuntu una Release‘ does not have a Rel
189 0
|
2月前
|
Linux 开发工具 git
【开发专题_03】unable to access ‘https://github.com/deviantony/docker-elk.git/‘: Failed connect to github
【开发专题_03】unable to access ‘https://github.com/deviantony/docker-elk.git/‘: Failed connect to github
|
2月前
|
Kubernetes 容器
使用kubeadm部署k8s报错:The kubelet is not running或者level=error msg="Handler for POST /v1.43/images/create returned error: Head \"https://us-west2-dock
使用kubeadm部署k8s报错:The kubelet is not running或者level=error msg="Handler for POST /v1.43/images/create returned error: Head \"https://us-west2-dock
|
4月前
|
Java Spring
Initialization failed for 'https://start.spring.io' Please check URL, network and proxy settings.
Initialization failed for 'https://start.spring.io' Please check URL, network and proxy settings.
277 0
|
4月前
|
Shell 开发工具 数据安全/隐私保护
git上传项目一直报一个文件没有添加任何内容(git上拉去别人的项目上传到自己的仓库/error: failed to push some refs to ‘https://gitee.com/)
git上传项目一直报一个文件没有添加任何内容(git上拉去别人的项目上传到自己的仓库/error: failed to push some refs to ‘https://gitee.com/)
67 0
git上传项目一直报一个文件没有添加任何内容(git上拉去别人的项目上传到自己的仓库/error: failed to push some refs to ‘https://gitee.com/)
|
4月前
【Error】fatal: unable to access ‘https://github.com/PanJiaChen/vue-element-admin/‘: OpenSSL SSL_read:
【Error】fatal: unable to access ‘https://github.com/PanJiaChen/vue-element-admin/‘: OpenSSL SSL_read:
|
5月前
|
Ubuntu Linux
仓库 “https://mirrors.aliyun.com/docker-ce/linux/ubuntu una Release” 没有 Release 文件
仓库 “https://mirrors.aliyun.com/docker-ce/linux/ubuntu una Release” 没有 Release 文件
179 0