Skip to content

Commit

Permalink
Podman compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Bizin authored and goldmann committed Sep 3, 2024
1 parent 3ebff68 commit 0030222
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docker_squash/v2_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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.
#
Expand Down

0 comments on commit 0030222

Please sign in to comment.