2016-09-06 134 views
2

我是码头工人的新手。我尝试运行Docker:无法运行hello-world。 Windows 10

$ docker run hello-world 

而且我得到了这个错误:

$ docker run hello-world 
    Unable to find image 'hello-world:latest' locally 
    Pulling repository docker.io/library/hello-world 
    C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Network timed out while trying to connect to https://index.docker.io/v1/repositories/library/hello-world/images. You may want to check your internet connection or if you are behind a proxy.. 
    See 'C:\Program Files\Docker\Docker\Resources\bin\docker.exe run --help'. 

我也允许为这个应用程序的所有点的防火墙 screenshot

回答

2

我遇到了这个问题,同时从MAC移动视窗。我会建议检查以下内容:

  • 您有多少个网络适配器?检查是否太多,以及码头是否使用正确的码头。如果你有太多 - 删除一个不被使用的
  • 对于某些人需要停用网络协议IP6才能使码头与互联网对话
  • 检查网络适配器上的流量 - 以防万一您正在使用hyper-v,您需要确保网络适配器允许使用连接到互联网的网络适配器。

我希望这可以为您带来正确的方向。

+0

我有点害怕,当我看到它 HTTP: //prntscr.com/ceuei8 –

+0

问题解决了。 我关闭了电脑上的hyper-v,之后我删除了所有这些hyper-v适配器并打开了hyper-v。之后,一切正常。 –

+1

感谢 - 很高兴它为你解决 - 第一步很容易陷入像hyperv与其他虚拟环境以及IP/docker网络设置的陷阱...不断尝试 - 这是一个伟大的一块软件。 – Pixelartist

0

我通过重新使用谷歌DNS的固定地址的DNS服务器解析在Windows 10此问题:8.8.8.8(docker documentation

enter image description here

+0

请不要在多个问题上发布相同的答案。发布一个很好的答案,然后投票/标记以重复关闭其他问题。如果问题不重复,*定制您的问题答案。* –

相关问题