From 003022210bea76d21b0334c2afe467dbef2319f3 Mon Sep 17 00:00:00 2001 From: Sergey Bizin Date: Sun, 1 Sep 2024 21:24:10 +0700 Subject: [PATCH] Podman compatibility --- docker_squash/v2_image.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docker_squash/v2_image.py b/docker_squash/v2_image.py index 861b0bd..3baee28 100644 --- a/docker_squash/v2_image.py +++ b/docker_squash/v2_image.py @@ -16,6 +16,9 @@ class V2Image(Image): def _before_squashing(self): super(V2Image, self)._before_squashing() + # New OCI Archive format type + self.oci_format = True + # Read old image manifest file self.old_image_manifest = self._get_manifest() self.log.debug( @@ -375,8 +378,6 @@ def _generate_image_metadata(self): def _get_manifest(self): if os.path.exists(os.path.join(self.old_image_dir, "index.json")): - # New OCI Archive format type - self.oci_format = True # Not using index.json to extract manifest details as while the config # sha could be extracted via some indirection i.e. #