Skip to content

Commit

Permalink
Make "images.push" method support "format" parameter
Browse files Browse the repository at this point in the history
Some repositories (AWS lambdas in ECR) have issues with
the oci manifest format and require the manifest be pushed
in the docker/v2s2 format.

Signed-off-by: Milan Balazs <milanbalazs01@gmail.com>
milanbalazs committed Aug 2, 2024
1 parent c5bde04 commit 102ea67
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions podman/domain/images_manager.py
Original file line number Diff line number Diff line change
@@ -206,6 +206,8 @@ def push(
destination (str): alternate destination for image. (Podman only)
stream (bool): return output as blocking generator. Default: False.
tlsVerify (bool): Require TLS verification.
format (str): Manifest type (oci, v2s1, or v2s2) to use when pushing an image.
Default is manifest type of source, with fallbacks.
Raises:
APIError: when service returns an error
@@ -220,6 +222,7 @@ def push(
params = {
"destination": kwargs.get("destination"),
"tlsVerify": kwargs.get("tlsVerify"),
"format": kwargs.get("format"),
}

name = f'{repository}:{tag}' if tag else repository

0 comments on commit 102ea67

Please sign in to comment.