Feature request: devcontainer build --build-output-folder
Author: pstoeckleCreated Sep 18, 2026Updated Sep 18, 2026
It would be nice it `devcontainer build` would have an option `--build-output-folder`. If such a folder is given, `devcontainer` uses the `devcontainer.json` etc. and prepares in the `build-output-folder` the Dockerfile, the dev container features, etc., but stops before running `docker build`. One could then use this build output folder, e.g., to lint the resulting Dockerfile using `hadolint`, start `docker build` with additional arguments, or use other container building tools like `apple/container` or `kaniko` which are no drop-in replacement for `docker`.
Source: devcontainers/cli