'What property to use for a prebuilt vscode devcontainer

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)



Solution 1:[1]

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 ikhvjs