如何修复Docker的“拖动图像错误太多重定向”从注册表中提取图片时失败? [英] How to fix Docker's "Error pulling image...too many redirects" failures while pulling images from registry?
本文介绍了如何修复Docker的“拖动图像错误太多重定向”从注册表中提取图片时失败?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我运行 docker pull ubuntu
在CoreOS中,我收到以下错误:
$ docker pull ubuntu
拉取存储库ubuntu
cc0067db4f11:错误从ubuntu拉伸图像(精确),终端:https://cdn-registry-1.docker.io/v1/,获取https://cdn-registry-1.docker.io/v1/images/cc0067db4f11198ef6fd0435f96a973e559b1cebfceb2bc8e4fe527b32045c2f/ancestry:拨打tcp:lookup cdn-registry-1.dcc0067db4f11:从ubuntu中拉出图片(精确)时出错,获取https://cdn-registry-1.docker.io/v1/images/cc0067db4f11198ef6fd0435f96a973e559b1cebfceb2bc8e4fe527b32045c2f/ancestry:dial tcp:lookup cdn-注册表-1.docker.io on [10.0.2.3]:53:太多的重定向
6006e6343fad:从ubuntu,端点拖动图像(quantal)时出错:https://cdn-registry-1.docker.io/ v1 /,获取https://cdn-registry-1.docker.io/v1/images/6006e6343fadaaeb5dd98436a3cd17eac8c03cabca1ed4c8778d039e72ebcc9c/ancestry:拨打tcp :lookup cdn-registry-1.d6006e6343fad:从ubuntu提取图像(quantal)时出错,获取https://cdn-registry-1.docker.io/v1/images/6006e6343fadaaeb5dd98436a3cd17eac8c03cabca1ed4c8778d039e72ebcc9c/ancestry:dial tcp:lookup cdn-registry- [10.0.2.3]上的1.docker.io:53:重定向太多
7656cbf56a8c:从ubuntu,端点拖动图像(13.04)时出错:https://cdn-registry-1.docker.io/v1/ ,获取https://cdn-registry-1.docker.io/v1/images/7656cbf56a8c831de71ef43809b04fcf8125e7b039250835b6c5f6f280daf12e/ancestry:拨号tcp:lookup cdn-registry-1.doc7656cbf56a8c:从ubuntu提取图像(13.04)时出错,获取https:// cdn-registry-1.docker.io/v1/images/7656cbf56a8c831de71ef43809b04fcf8125e7b039250835b6c5f6f280daf12e/ancestry:在[10.0.2.3]上拨打tcp:lookup cdn-registry-1.docker.io:53:重定向太多
3db9c44f4520:错误从ubuntu拉伸图像(lucid),终端:https://cdn-registry-1.docker.io/v1/,获取https://cdn-registry-1.docker.io/v1/images/3db9c44f45209632d6050b35958829c3a2aa256 d81b9a7be45b362ff85c54710 / ancestry:dial tcp:lookup cdn-registry-1.doc3db9c44f4520:从ubuntu中提取图像(lucid)时出错,获取https://cdn-registry-1.docker.io/v1/images/3db9c44f45209632d6050b35958829c3a2aa256d81b9a7be45b362ff85c54710/ancestry:拨打tcp :在[10.0.2.3]上查找cdn-registry-1.docker.io:53:重定向太多
5cf8fd909c6c:从ubuntu,端点:https:// cdn-registry-1拉出图像(信任)时出错。 docker.io/v1/,获取https://cdn-registry-1.docker.io/v1/images/5cf8fd909c6ccc61199df6dbeb165767b83c23842ef49ca3ef3b81ece1bdce4f/ancestry:拨打tcp:lookup cdn-registry-1.do5cf8fd909c6c:从ubuntu中提取图像(信任)时出错,获取https://cdn-registry-1.docker.io/v1/images/5cf8fd909c6ccc61199df6dbeb165767b83c23842ef49ca3ef3b81ece1bdce4f/ancestry:在[10.0.2.3]上拨打tcp:lookup cdn-registry-1.docker.io:53:重定向太多
d2099a5ba6c5:从ubuntu,端点拖动图像(saucy)时出错:https://cdn-registry-1.docker.io/v1/,获取https://cdn-registry-1.docker.io/v1/一世法师/ d2099a5ba6c5a0f94f84162d69b4cb79b47c7ea1768550c6cee55a7ba2dc3647 /血统:拨打TCP:查找CDN-注册表1.docd2099a5ba6c5:错误从Ubuntu的,弄拉https://cdn-registry-1.docker.io/v1/images/d2099a5ba6c5a0f94f84162d69b4cb79b47c7ea1768550c6cee55a7ba2dc3647/ancestry图像(无礼):在[10.0.2.3]上拨打tcp:lookup cdn-registry-1.docker.io:53:重定向太多
2014/06/05 12:17:11无法在任何索引注册表上找到存储库。
如果有人能给我一个有用的建议,如何解决这个问题,我真的很感激。 / p>
解决方案
尝试此临时解决方法:
osx $ boot2docker up
osx $ boot2docker ssh
docker @ boot2docker $ sudo echonameserver 8.8.8.8> /etc/resolv.conf
docker @ boot2docker $ sudo /etc/init.d/docker restart
它可以重新启动。
I am running Docker via CoreOS and Vagrant on OS X 10.10.
When I run docker pull ubuntu
in CoreOS, I got following errors:
$ docker pull ubuntu
Pulling repository ubuntu
cc0067db4f11: Error pulling image (precise) from ubuntu, endpoint: https://cdn-registry-1.docker.io/v1/, Get https://cdn-registry-1.docker.io/v1/images/cc0067db4f11198ef6fd0435f96a973e559b1cebfceb2bc8e4fe527b32045c2f/ancestry: dial tcp: lookup cdn-registry-1.dcc0067db4f11: Error pulling image (precise) from ubuntu, Get https://cdn-registry-1.docker.io/v1/images/cc0067db4f11198ef6fd0435f96a973e559b1cebfceb2bc8e4fe527b32045c2f/ancestry: dial tcp: lookup cdn-registry-1.docker.io on [10.0.2.3]:53: too many redirects
6006e6343fad: Error pulling image (quantal) from ubuntu, endpoint: https://cdn-registry-1.docker.io/v1/, Get https://cdn-registry-1.docker.io/v1/images/6006e6343fadaaeb5dd98436a3cd17eac8c03cabca1ed4c8778d039e72ebcc9c/ancestry: dial tcp: lookup cdn-registry-1.d6006e6343fad: Error pulling image (quantal) from ubuntu, Get https://cdn-registry-1.docker.io/v1/images/6006e6343fadaaeb5dd98436a3cd17eac8c03cabca1ed4c8778d039e72ebcc9c/ancestry: dial tcp: lookup cdn-registry-1.docker.io on [10.0.2.3]:53: too many redirects
7656cbf56a8c: Error pulling image (13.04) from ubuntu, endpoint: https://cdn-registry-1.docker.io/v1/, Get https://cdn-registry-1.docker.io/v1/images/7656cbf56a8c831de71ef43809b04fcf8125e7b039250835b6c5f6f280daf12e/ancestry: dial tcp: lookup cdn-registry-1.doc7656cbf56a8c: Error pulling image (13.04) from ubuntu, Get https://cdn-registry-1.docker.io/v1/images/7656cbf56a8c831de71ef43809b04fcf8125e7b039250835b6c5f6f280daf12e/ancestry: dial tcp: lookup cdn-registry-1.docker.io on [10.0.2.3]:53: too many redirects
3db9c44f4520: Error pulling image (lucid) from ubuntu, endpoint: https://cdn-registry-1.docker.io/v1/, Get https://cdn-registry-1.docker.io/v1/images/3db9c44f45209632d6050b35958829c3a2aa256d81b9a7be45b362ff85c54710/ancestry: dial tcp: lookup cdn-registry-1.doc3db9c44f4520: Error pulling image (lucid) from ubuntu, Get https://cdn-registry-1.docker.io/v1/images/3db9c44f45209632d6050b35958829c3a2aa256d81b9a7be45b362ff85c54710/ancestry: dial tcp: lookup cdn-registry-1.docker.io on [10.0.2.3]:53: too many redirects
5cf8fd909c6c: Error pulling image (trusty) from ubuntu, endpoint: https://cdn-registry-1.docker.io/v1/, Get https://cdn-registry-1.docker.io/v1/images/5cf8fd909c6ccc61199df6dbeb165767b83c23842ef49ca3ef3b81ece1bdce4f/ancestry: dial tcp: lookup cdn-registry-1.do5cf8fd909c6c: Error pulling image (trusty) from ubuntu, Get https://cdn-registry-1.docker.io/v1/images/5cf8fd909c6ccc61199df6dbeb165767b83c23842ef49ca3ef3b81ece1bdce4f/ancestry: dial tcp: lookup cdn-registry-1.docker.io on [10.0.2.3]:53: too many redirects
d2099a5ba6c5: Error pulling image (saucy) from ubuntu, endpoint: https://cdn-registry-1.docker.io/v1/, Get https://cdn-registry-1.docker.io/v1/images/d2099a5ba6c5a0f94f84162d69b4cb79b47c7ea1768550c6cee55a7ba2dc3647/ancestry: dial tcp: lookup cdn-registry-1.docd2099a5ba6c5: Error pulling image (saucy) from ubuntu, Get https://cdn-registry-1.docker.io/v1/images/d2099a5ba6c5a0f94f84162d69b4cb79b47c7ea1768550c6cee55a7ba2dc3647/ancestry: dial tcp: lookup cdn-registry-1.docker.io on [10.0.2.3]:53: too many redirects
2014/06/05 12:17:11 Could not find repository on any of the indexed registries.
I'd really appreciate if anyone could give me a useful advise on how to troubleshoot this problem.
解决方案
Try this temporary workaround:
osx$ boot2docker up
osx$ boot2docker ssh
docker@boot2docker$ sudo echo "nameserver 8.8.8.8" > /etc/resolv.conf
docker@boot2docker$ sudo /etc/init.d/docker restart
It works until reboot.
这篇关于如何修复Docker的“拖动图像错误太多重定向”从注册表中提取图片时失败?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文