[英]What property to use for a prebuilt vscode devcontainer
我目前正在構建一個 VSCode devcontainer 與我的團隊共享。 該容器使用devcontainer build
在 Gitlab 管道上構建,並推送到我們的私有注冊表上。 然后在 repo 中我們拉那個容器 我的問題是關於用於預構建容器的devcontainer.json
文件。 似乎我無法在任何地方找到任何答案。
我實際上可以從devcontainer build
上下文中的引用使用什么屬性? 從文檔中,他們只顯示一對夫婦中的一對。 但是其他人呢? (特別是settings
)
您可以從devcontainer.json
中的私有注冊表指定容器映像。
devcontainer.json
{
"image": "your-private-registry"
}
參考: https://code.visualstudio.com/docs/remote/create-dev-container#_create-a-devcontainerjson-file
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.