vscode Docker 扩展在更新 vscode 到 v1.55 后不显示远程容器:vscode 错误连接 econnrefused 127.0.0.1:80

vscode Docker extension does not show the remote containers after updaing vscode to v1.55: vscode error connect econnrefused 127.0.0.1:80

将 vscode 更新到版本 1.55(2021 年 3 月)后,remote-docker 扩展不再显示远程容器,而是显示此错误: vscode 错误连接 econnrefused 127.0.0.1:80 值得注意的是,远程容器显示在 vscode 1.54.3.

更新之前

失败的临时解决方案:通过禁用update.mod并将vscode降级到1.54.3版本,容器再次出现在remote-docker扩展中。但是,“附加 Visual Studio 代码”选项消失了(显然是由于禁用自动更新引起的)。

郑重声明,我确实找到了以下解决方案,但没有帮助,因为我的 docker.host 中没有 tcp://。

The error I get in the Docker extension after updating vscode to version 1.55

这里建议临时解决:https://github.com/microsoft/vscode-docker/issues/2831#issuecomment-811864175

使用边栏中的“Remote Explorer”扩展而不是“Docker”扩展可以查看和连接到容器。

在 VSCode 1.55 中,问题可能是 solved 通过在“设置”中设置“http.proxySupport”: “关闭”。 更新至 VSCode 1.55.1 永久解决了该问题,无需关闭“http.proxySupport”。

参考:https://github.com/microsoft/vscode-docker/issues/2831#issuecomment-811864175