Conditional mounts or mount after container creation #56
Unanswered
Jochen Steinmann (Jogi7819)
asked this question in
Q&A
Replies: 1 comment
|
Thank you for opening Jochen Steinmann (@Jogi7819)! On the VS Code Dev Containers extension side, we have a feature request tracking conditional mounting: microsoft/vscode-remote-release#5322. As indicated in that issue (microsoft/vscode-remote-release#5322 (comment)), there's an issue tracking this for the overall dev container spec here: devcontainers/spec#132, and we'd certainly welcome any contributions to https://github.com/devcontainers/cli! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi community,
we use the same devcontainer.json file in different environments (remote and local builds). Some of the mounts are only required for a certain environment.
Is it possible to make a mount optional (maybe based on environment variables) or to only have warning instead of an error if a certain mount point does not exists?
Is it possible to mount a folder on container creation for example when the initializeCommand stage is executed?
Thanks in advance
All reactions