List, inspect and explore OCI container images, their layers and contents
1–10 of 13 posts
Re: List, inspect and explore OCI container images, their layers and contents
#2Re: List, inspect and explore OCI container images, their layers and contents
#3[0]: https://github.com/google/go-containerregistry/blob/v0.20.7/...
Re: List, inspect and explore OCI container images, their layers and contents
#4A similar tool to this (includes interactive TUI) is https://github.com/wagoodman/dive
Re: List, inspect and explore OCI container images, their layers and contents
#5Re: List, inspect and explore OCI container images, their layers and contents
#6I think the most common tools for similar workflows is Google's crane[0] and Red Hat's Skopeo[1]. It might be slightly more low-level than most developers want, though. [0]: https://github.com/google/go-containerregistry/blob/v0.20.7/... [1]: https://github.com/containers/skopeo
And my favorite project for inspecting layers is Jon's https://oci.dag.dev/.
Re: List, inspect and explore OCI container images, their layers and contents
#7A similar tool to this (includes interactive TUI) is https://github.com/wagoodman/dive
Re: List, inspect and explore OCI container images, their layers and contents
#8Re: List, inspect and explore OCI container images, their layers and contents
#9You can try to infer it from having a world wide list of chainIds and associate known images with their final chainId, but this isn't perfect and then just assume your image's changes are from last_known_chaid_id+1->end
1) many image tags can share a chainId (not terrible problem) 2) if for some reason you dont know of an image, but know of its parent, you will assume its "parent" is your base image, when its not.
I don't quite understand why OCI images don't contain a reference to the base image that they were created from (which can even be empty/no parents for from scratch images, including where multistage builds are down and everything gets copied into a from scratch image).
Re: List, inspect and explore OCI container images, their layers and contents
#10A similar tool to this (includes interactive TUI) is https://github.com/wagoodman/dive