yakshaveinc / tasks

distributed roadmap
The Unlicense
1 stars 0 forks source link

Index contents of Docker image without running it #55

Open abitrolly opened 4 years ago

abitrolly commented 4 years ago

The possible way is to parse layers after docker save and join them together. dive already does this to present in its GUI, and the solution is to patch it to output the information to console.

abitrolly commented 4 years ago

Using buildah it is possible to create container from image and then mount it for inspection - https://github.com/containers/buildah/issues/2046

abitrolly commented 4 years ago

Another way is to patch dive to unpack podman image on the fly and merge the parsed layers https://github.com/wagoodman/dive/blob/master/dive/image/docker/image_archive.go

abitrolly commented 3 years ago

Some things happened.

abitrolly commented 2 years ago

https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_export.md