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
{{ message }}
Repository navigation
Graduate Dev Container Lockfile from Preview to Stable #1195
This issue proposes making the Dev Container lockfile (devcontainer-lock.json) feature stable in the Dev Container CLI, transitioning it from its current preview (experimental) state. The lockfile enables reproducible builds and integrity verification by recording exact digests and checksums for all Features resolved by the CLI.
Reproducibility: Builds always resolve to the same set of features, regardless of time or machine.
Security & Integrity: Feature artifacts are verified; unexpected changes or tampering are detected and will fail the build.
Reviewable diffs: Lockfiles make changes in feature dependencies transparent and easy to audit.
Proposed Changes
Enable lockfile by default: The CLI (devcontainer build and devcontainer up) will automatically create and update devcontainer-lock.json by default. Users will no longer need to enable this feature with an experimental flag.
Add --no-lockfile and --frozen-lockfile flags:
--no-lockfile disables all lockfile behavior for users who wish to opt out (matches npm/pnpm conventions).
--frozen-lockfile enforces exact lockfile matches and fails if the lockfile is missing or mismatched.
The legacy --experimental-lockfile and --experimental-frozen-lockfile flags will be deprecated and replaced by the new flags, with warnings provided.
No changes needed for other CLI commands: The update only affects build and up; commands like outdated, upgrade, etc., already use or write lockfiles without additional flags.
Out of Scope
No changes to the actual lockfile file format or related property keys in devcontainer.json.
This change brings the CLI in line with modern package management tools for security and reproducibility while offering users flexibility to opt out.
Activity
brooke-hamilton commentedon May 12, 2026
Closing as fixed in #1212.