3

我试图docker run hello-world从公司网络中运行并抛出错误:

PS C:\WINDOWS\system32> docker run hello-world
Unable to find image 'hello-world:latest' locally
C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for  onnection (Client.Timeout exceeded while awaiting headers).
See 'C:\Program Files\Docker\Docker\Resources\bin\docker.exe run --help'.
PS C:\WINDOWS\system32>

当我输入

https://registry-1.docker.io/v2/

在浏览器上它可以工作并抛出以下内容

{"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail":null}]}

我怀疑我们的公司防火墙阻止了一些呼叫,docker.io因为当我在我的家庭网络上时这很好用。我需要找出实际的呼叫阻塞,以便我可以请求 IT 团队打开它。

我尝试使用 fiddler 来查看发生了什么,但 fiddler 没有捕获 docker 调用上的任何流量。因为我对 docker 很陌生,所以我真的不知道如何设置 fiddler 来捕获 docker http(s) 调用。

任何指针都会有所帮助。

4

0 回答 0