Skip to content

Add --iidfile option to container build#2011

Open
ncopa wants to merge 1 commit into
apple:mainfrom
ncopa:implement-iidfile
Open

Add --iidfile option to container build#2011
ncopa wants to merge 1 commit into
apple:mainfrom
ncopa:implement-iidfile

Conversation

@ncopa

@ncopa ncopa commented Jul 24, 2026

Copy link
Copy Markdown

Writes the built image's digest to a file after a successful build, mirroring the existing --cidfile convention used by container run/create. Only supported with the default OCI output (type=oci), since that is the only export that produces a loaded image digest.

Fixes #1998

Important

All commits must be signed and verified. Pull requests containing unsigned or unverified commits cannot be built or merged. See the GitHub documentation for instructions.

For all but trivial fixes, make sure to first create a GitHub issue that concisely describes the bug or desired enhancement as justification for the change. Large PRs with no justifying issue will be closed.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Motivation and Context

[Why is this change needed?]

Testing

  • Tested locally
  • Added/updated tests
  • Added/updated docs

@ncopa
ncopa force-pushed the implement-iidfile branch from f3d7c81 to 4a08286 Compare July 24, 2026 09:37
Writes the built image's digest to a file after a successful build,
mirroring the existing --cidfile convention used by container run/create.
Only supported with the default OCI output (type=oci), since that is the
only export that produces a loaded image digest.

Fixes apple#1998
@ncopa
ncopa force-pushed the implement-iidfile branch from 4a08286 to 5f8985c Compare July 24, 2026 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Request]: implement --iidfile <file> Write the image ID to the file

1 participant