You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

VS Code本地无法打开Devcontainer,但Codespaces可正常运行求助

本地VS Code Devcontainer启动异常,但Codespaces可正常运行

在本地VS Code中点击「Reopen in Devcontainer」时触发异常错误,同一Devcontainer在GitHub Codespaces中却能正常运行,目前无法定位问题根源。

相关详情:

  • 可复现问题的仓库:robinlovelace/opengeohub2023
  • 疑似关联的.devcontainer.json配置(本人认为无问题):
{
    "image": "ghcr.io/robinlovelace/opengeohub2023:main",
    // "forwardPorts": [3000],
    "customizations": {
        // Configure properties specific to VS Code.
        "vscode": {
            // Add the IDs of extensions you want installed when the container is created.
            "extensions": [
                "reditorsupport.r",
                "quarto.quarto",
                "ionutvmi.path-autocomplete"
            ]
        }
    }
}
  • 可正常运行的环境入口:创建该仓库的GitHub Codespaces
  • 错误日志:该仓库Issue 14下的对应评论
  • 错误截图:Devcontainer启动错误截图

内容的提问来源于stack exchange,提问作者RobinLovelace

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.12 02:57:07