Support devcontainer.json option 'buildArgs' #4352
Labels
containers
Issue in vscode-remote containers
*duplicate
Issue identified as a duplicate of another issue(s)
feature-request
Request for new features or functionality
Milestone
Currently in devcontainer.json it's possible to pass a list of arguments to
docker run
with therunArgs
option, but there's no correspondingbuildArgs
option to pass a list of arguments todocker build
.For my particular case I'm looking to pass the
--pull
argument todocker build
so I can keep my devcontainers up to date by rebuilding them and don't have to bump versions by hand.It looks like some people over in #2200 are looking for the ability to pass the
--no-cache
option, and I bet there are other options people would like to pass too.The
docker build
options--target
and--build-arg
were added as a part of #46 last year but it stopped short of adding the ability to pass arbitrary options, which would be really convenient.There exists the similar-sounding
build.args
option in devcontainer.json right now, so it might be better to use a different name thanbuildArgs
, for examplebuild.options
orbuild.cliArgs
.The text was updated successfully, but these errors were encountered: