发布 Iot Edge 解决方案时如何消除超时错误?

How to get rid of timeout errors when publishing Iot Edge solution?

我正在使用 VSCode 进行 IotEdge 开发。使用 "Build and Push Iot Edge solution" 在一段时间内工作得很好,但突然之间 docker 容器无法再推送到云端。我收到以下错误:

Get https://[hidden].azurecr.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

我需要做些什么才能让它恢复正常?

这可能是您的开发机器上 docker 运行 的一些问题。重新启动后 docker(例如,通过右键单击任务栏图标并选择“重新启动...”),您应该能够再次发布您的解决方案。