Docker build giving error: Client.Timeout exceeded while awaiting headers
Docker build giving error: Client.Timeout exceeded while awaiting headers
使用 Visual Studio 2017 创建 Web 项目,支持 Docker (linux) 我无法启动在 Visual Studio 中创建的示例 MVC 项目。就在昨天,一切正常。我检查了防火墙,重新安装了 Docker 很多次。有什么想法吗?
构建命令(由visual studio生成):
docker build -f
"C:\Users\User\source\repos\testDocker2\testDocker2\Dockerfile" -t
testdocker2:dev --target base --label
"com.microsoft.created-by=visual-studio"
"C:\Users\User\source\repos\testDocker2"
错误:`
Get https://registry-1.docker.io/v2/: net/http: request canceled while
waiting for connection (Client.Timeout exceeded while awaiting
headers)
见下图:
`
我在控制台遇到了同样的错误。
查看 "Network Connections" 设置后,我看到 IP 是静态设置的,但 DNS 设置为空。
所以我设置了一个 DNS 值,然后重试,它成功了。
Error response from daemon: Get https://registry-1.docker.io/v2/:
net/http: request canceled while waiting for connection
(Client.Timeout exceeded while awaiting headers)
使用 Visual Studio 2017 创建 Web 项目,支持 Docker (linux) 我无法启动在 Visual Studio 中创建的示例 MVC 项目。就在昨天,一切正常。我检查了防火墙,重新安装了 Docker 很多次。有什么想法吗?
构建命令(由visual studio生成):
docker build -f "C:\Users\User\source\repos\testDocker2\testDocker2\Dockerfile" -t testdocker2:dev --target base --label "com.microsoft.created-by=visual-studio" "C:\Users\User\source\repos\testDocker2"
错误:`
Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
见下图:
我在控制台遇到了同样的错误。
查看 "Network Connections" 设置后,我看到 IP 是静态设置的,但 DNS 设置为空。
所以我设置了一个 DNS 值,然后重试,它成功了。
Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)