podman save question - size differences between formats docker-archive and oci-archive? #17934
-
Hello! I'm working with saving a large image, and I noticed that when running Example: The First: go oci-archive format, that's amazing. Is oci-archive employing compression during the save process on certain files? If so, what files, and what compression format is is using? I noticed that it compresses even more than gzip -9 Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Thanks for reaching out @Jared-Sprague! The layers inside the oci-archive are compressed while the layers inside the docker-archive are not compressed. That can make quite a difference. @mtrmac anything you want to add? |
Beta Was this translation helpful? Give feedback.
-
Yes, the default of
Just by a quick grep: c/image’s So it should be possible to set the two on a level footing. |
Beta Was this translation helpful? Give feedback.
-
Thanks! |
Beta Was this translation helpful? Give feedback.
Yes, the default of
oci-archive
is compression; that’s just gzip with no special options (but a not quite default implementation), AFAIK.docker-archive
layers are always uncompressed (but it is customary to compress the output afterwards).Just by a quick grep:
c/image’s
types.SystemContext.OCIAcceptUncompressedLayers
seems to be provided by libimage, and visible aspodman save --uncompressed
So it should be possible to set the two on a level footing.