Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

imagetools create should return the digest of the new image #2407

Open
Pesa opened this issue Apr 12, 2024 · 1 comment
Open

imagetools create should return the digest of the new image #2407

Pesa opened this issue Apr 12, 2024 · 1 comment
Labels
kind/enhancement New feature or request status/triage

Comments

@Pesa
Copy link

Pesa commented Apr 12, 2024

Description

I'm using docker buildx imagetools create to create a multi-platform image from previously built single-platform images.

I'd like this command to somehow output the digest of the newly created image, so that subsequent steps and downstream jobs can "atomically" operate (run some checks, inspect, sign, etc.) on that same version of the image without relying on tags, which can be moved.

docker/build-push-action already has a digest output, so I guess I'm asking for a similar feature in imagetools create.

@Pesa Pesa added kind/enhancement New feature or request status/triage labels Apr 12, 2024
@tonistiigi
Copy link
Member

@crazy-max Should we add --metadata-file to imagetools create or do you have better ideas for UX. We can also do it for --dry-run that atm. prints the manifest bytes. Digest is just checksum of the same bytes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request status/triage
Projects
None yet
Development

No branches or pull requests

3 participants