2016-09-06 132 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

請不要在多個問題上發佈相同的答案。發佈一個很好的答案,然後投票/標記以重複關閉其他問題。如果問題不重複,*定製您的問題答案。* –

相關問題