Closed
Description
When building a devcontainer from dockerfile it will be useful to expose out additional docker build
args that can be used when the container is created.
This can be done either by direct linking of these commands to the build
property in the .devcontainer.json
or via a catch-all array like build.command_flags: ["--network=host", "--compress"]
etc
Example, a dockerfile is installing packages from an internal repository but your machine is on a vpn. Would need to pass --network=host
to the build command to ensure that traversal happens correctly on Linux hosts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment