拨打tcp:查找xxx.xxx.xxx.xxx:没有这样的主机 [英] dial tcp: lookup xxx.xxx.xxx.xxx: no such host
问题描述
尝试将Docker映像推送到私有Docker存储库.但是出现错误:"dial tcp: lookup xxx.xxx.xxx.xxx: no such host"
.
我已经正确登录到存储库并成功构建.
Trying to push an docker image to private docker repository. but getting error like: "dial tcp: lookup xxx.xxx.xxx.xxx: no such host"
.
I have logged in correctly to the repository and build succeeded.
以下命令用于将图像推送到私有repo:
sud docker push x.x.x.x:446/dns/graphs
The following command using to push the image to private repo:
sud docker push x.x.x.x:446/dns/graphs
推荐答案
在/etc/resolv.conf
文件中编辑DNS名称服务器对我有帮助.
Editing the DNS nameserver in /etc/resolv.conf
file helped me.
将现有的名称服务器更改为Google名称服务器,即x.x.x.x更改为8.8.8.8
Change your existing nameserver to google nameserver i.e., x.x.x.x to 8.8.8.8
评论您的域名服务器IP并添加如下内容:
Comment your nameserver IP and add something like this :
#nameserver x.x.x.x
nameserver 8.8.8.8
应该工作.
这篇关于拨打tcp:查找xxx.xxx.xxx.xxx:没有这样的主机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!