用于预制的VSCODE DEVCONTAINER的哪种属性

发布于 2025-01-26 01:48:52 字数 371 浏览 2 评论 0 原文

我目前正在建立一个VSCODE DEVCONTAINER,可以与我的团队分享。 该容器是使用 devcontainer build 构建的,并推开了我们的私人注册表。然后在存储库中,我们正在拉那个容器 我的问题是围绕 devcontainer.json 用于预构建容器的文件。看来我找不到任何答案。

我实际上可以从上下文?从文档中,他们只会从一对夫妇那里展示一对。但是其他人呢? (尤其是设置

I am currently build a VSCode devcontainer to share with my team.
The container is built on a Gitlab pipeline using devcontainer build and pushed on our private registry. Then in the repo we are pulling that container
My question is around the devcontainer.json file used for the prebuilt container. It seems I can't find any answer nowhere.

What property can I actually use from the reference in a devcontainer build context? From the doc, they only show a couple from an couple. But what about the others? (especially settings)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

蓝海似她心 2025-02-02 01:48:52

您可以从 devcontainer.json 中的私有注册表中指定容器映像。

devcontainer.json

{
  "image": "your-private-registry"
}

ref: https://code.visualstudio.com/docs/remote/create-dev-container#_create-a-devcontainerjson-file

You can specify the container image from your private registry in the devcontainer.json.

devcontainer.json

{
  "image": "your-private-registry"
}

Ref: https://code.visualstudio.com/docs/remote/create-dev-container#_create-a-devcontainerjson-file

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文