来自守护程序的错误响应:获取https://registry-1.docker.io/v2/:拨打tcp:在192.168.65.1:53上查找注册表-1.docker.io:没有这样的主机 [英] Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 192.168.65.1:53: no such host
问题描述
我是码头工人的新手。当我运行docker pull sonarqube时,出现以下错误。
I am new to dockers. When I am running the docker pull sonarqube I am getting the following error.
守护程序的错误响应:获取 https://registry-1.docker.io/v2/ :拨打TCP:在192.168.65.1上查找注册表-1.docker.io: 53:没有这样的主机
Error response from daemon: Get https://registry-1.docker.io/v2/: dial TCP: lookup registry-1.docker.io on 192.168.65.1:53: no such host
您能告诉我为什么会收到错误消息以及如何纠正此错误吗?
Can you please let me know why I am getting the error and how can I rectify this.
推荐答案
我在Ubuntu 16.04
上遇到了类似的问题,并设法通过添加更多 nameservers
I had similar issue on Ubuntu 16.04
and manage to solve it by adding more nameservers
您也可以尝试。
-
打开配置文件
sudo nano /etc/resolv.conf
并在现有名称服务器下添加以下内容
Open config file
sudo nano /etc/resolv.conf
and add the following under existing nameservers
名称服务器8.8 .8.8
名称服务器8.8.4.4
运行以下命令以重新启动守护程序和docker服务
run following commands to restart daemon and docker service
sudo systemctl daemon-reload
sudo systemctl restart docker
现在尝试拉出想要的图像 docker pull sonarqube
Now try to pull image you want docker pull sonarqube
这篇关于来自守护程序的错误响应:获取https://registry-1.docker.io/v2/:拨打tcp:在192.168.65.1:53上查找注册表-1.docker.io:没有这样的主机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!