You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The two main use cases for myself are adding --progress=plan and --secretarguments.
Of course, I can do it myself by executing docker build outside the vscode, but it is not the same.
Reacted by Jonathan A. M, Staffan Forsell, Laurent Sorber, Christopher Bailey, Brian Kroth, Manuel Leonhardt, Marc, Nao Yokotsuka, jenswiltheis, Milivoj Persson and 3 more
I would like to second this. Running into an issue where I would like to provide runtime environment BUILD_ARGS. Dates and dynamic versioning type metadata that seems to be difficult to implement with the current API.
+1 on this. My use-case is around network isolation. Due to network settings I need to use host network and not default container network while building. Requires --network=host to be supplied for build argument to reach out to internet.
Adding my +1. I'm building a bunch of centrally managed devcontainers for my team and would like to dynamically create containers for different runtime versions that are passed to something similar to Docker build args.
In an ideal world the devcontainer args could be used in any field so that I could, for example specify a different base image or base image tag based on incoming args. Not the end of the world if it's just a pass through to docker though since you could get the same effect by creating a Dockerfile and passing the args through.
currently I have a single base image with my build args set, then I have to create a separate devcontainer.json for each runtime version that I want to support.
Activity
ontoneio commentedon Aug 2, 2022
I would like to second this. Running into an issue where I would like to provide runtime environment BUILD_ARGS. Dates and dynamic versioning type metadata that seems to be difficult to implement with the current API.
rastislav-vcrs commentedon Oct 28, 2022
+1 on this. My use-case is around network isolation. Due to network settings I need to use host network and not default container network while building. Requires
--network=hostto be supplied for build argument to reach out to internet.rastislav-vcrs commentedon Feb 21, 2023
Any update on this?
ericfeunekes commentedon Mar 13, 2023
Adding my +1. I'm building a bunch of centrally managed devcontainers for my team and would like to dynamically create containers for different runtime versions that are passed to something similar to Docker build args.
In an ideal world the devcontainer args could be used in any field so that I could, for example specify a different base image or base image tag based on incoming args. Not the end of the world if it's just a pass through to docker though since you could get the same effect by creating a Dockerfile and passing the args through.
currently I have a single base image with my build args set, then I have to create a separate devcontainer.json for each runtime version that I want to support.
chrmarti commentedon Jan 15, 2024
Implementing proposal devcontainers/spec#328 here.
[-]add a way of supplying additional docker build args[/-]Support additional Docker build options (#85)
Support additional Docker build options (#85)
chrmarti commentedon Jan 17, 2024
Available in the Dev Containers CLI 0.56.0.