【问题标题】:How do I specify the tag to use for an image within a VS Code container definition JSON?如何在 VS Code 容器定义 JSON 中指定用于图像的标签?
【发布时间】:2020-02-25 23:01:14
【问题描述】:

如果我在使用预先存在的 docker 映像时指定标签,VS Code 将无法启动,如下所示:

    {
        "name": "VsCode Image Tag Issue.",
        "context": "..",
        "image": "rirlswift/vscode-remote-nvidia-issue:latest",
        "runArgs": [
             "--name","docker-opengl"
            "-v", "/tmp/.X11-unix:/tmp/.X11-unix:rw",
            "-e", "DISPLAY",
            "--rm"
        ],
        "postCreateCommand": "glxgears"
    }

这是我提交给 VS Code 远程扩展团队的问题的问题标记。 2431

我有任务的图像可能有语法吗?

【问题讨论】:

    标签: image docker visual-studio-code tags containers


    【解决方案1】:

    更新:看起来 VsCode 正在等待修复: 2431 我已经使用 Insiders Edition 进行了验证

    Version: 1.45.0-insider
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-07-05
      • 1970-01-01
      • 2015-07-09
      • 1970-01-01
      相关资源
      最近更新 更多