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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add layer sizes to buildx imagetools inspect #1558

Open
ddelange opened this issue Jan 26, 2023 · 5 comments
Open

Add layer sizes to buildx imagetools inspect #1558

ddelange opened this issue Jan 26, 2023 · 5 comments
Labels

Comments

@ddelange
Copy link

Hi 馃憢

I'd like to use docker manifest inspect -v to sum up layer sizes: https://stackoverflow.com/a/73108928/5511061

However, this command does not currently support OCI manifests. The alternative, docker buildx imagetools inspect --raw, does not include the verbosity needed to sum up layer sizes.

Leaving this here as suggested in docker/build-push-action#764 (comment) and in moby/moby#43126 (comment)

Originally posted by @ddelange in #1509 (comment)

@ddelange
Copy link
Author

ddelange commented Feb 7, 2023

@jedevc this ticket was not yet included in docker/cli#3990 right? I need to upgrade my Mac OS before I can upgrade Docker to test it myself, hence me asking 馃槄

@jedevc
Copy link
Collaborator

jedevc commented Feb 7, 2023

Yeah, this is completely different from that ticket.

The CLI issue is about supporting OCI images in docker manifest, while this one is about adding layer size support into docker buildx imagetools.

The latest release of docker (v23.0) should include the manifest patch, I haven't had a proper look at this one yet 馃憖

@ddelange
Copy link
Author

ddelange commented Feb 7, 2023

Thanks for the quick reply! So having image layer sizes for OCI manifests in docker manifest inspect -v would be a different ticket, after this one, to port that over?

@jedevc
Copy link
Collaborator

jedevc commented Feb 7, 2023

docker manifest inspect -v should get layer sizes for OCI images in v23.0 I think! Unless I implemented something wrong 馃憖

@ddelange
Copy link
Author

ddelange commented Feb 7, 2023

Aha awesome! Ok I really need to upgrade my Mac 馃檲 thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants