【问题标题】:Visual studio Code - devcontainer extensions not installing behind VPNVisual Studio Code - devcontainer 扩展未安装在 VPN 后面
【发布时间】:2020-12-21 19:15:53
【问题描述】:

我有一个带有以下属性的 devcontainer.json:

"extensions": ["esbenp.prettier-vscode"],

不幸的是,当我使用 VPN 时;扩展未安装(我可以在本地/手动安装)。

有什么可能导致这种情况的想法吗?

【问题讨论】:

    标签: docker visual-studio-code vscode-devcontainer


    【解决方案1】:

    在我的 .devcontainer 文件中明确设置 HTTP_PROXY 是解决我在公司防火墙后面的问题。确保重建容器。

    "containerEnv": {
        "HTTP_PROXY": "{your proxy}"
    },
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-03-20
      • 2023-03-31
      • 2016-09-01
      • 1970-01-01
      • 2019-09-04
      • 1970-01-01
      • 2012-04-11
      相关资源
      最近更新 更多