Our team has been building docker images that contain metadata manifest files. Ideally, before we run an image, we’d love to inspect that metadata file, using something like:
I’m only reading articles at the moment, but the OCI toolset and/or similar tools (looking at umoci atm) may do what you want.
I’ve only spent ~ 5 minutes looking at this and it looks like there are methods to ‘unpack’ an image. Wether or not they allow you to pull a single file though … idk.
Please let me know how it goes if you try them. It will take me a while before I’ll be able to compile/run/test the tools myself. (I have a similar use-case)
Here is an example. In my case, I want to copy a file which is located at /usr/src/app/build/pgbackrest-release-2.43/src/pgbackrest inside the image hm-pgbackrest:latest.