Podman save using id.#1642
Conversation
To workaround the error "Digest of source image's manifest would not match destination reference", when image is saved using sha256.
| subprocess.check_output(["podman", "save", "--format=oci-archive", "--quiet", | ||
| "-o", os.path.join(outputdir, "bootstrap.tar"), | ||
| image_specification]) | ||
| bootstrap_data["id"]]) |
There was a problem hiding this comment.
Thank you for the patch!
It's strange this is needed only with the UBI 9 image, but not with Fedora. That said, are we doing something wrong with podman save, or the subsequent podman pull oci-archive:..? Is this a buggy OCI image? Would you mind reporting this against the Podman project?
If this patch works, it works, and the change seems safe. However, is it possible that podman pull could download an image with a different bootstrap_data["id"] (e.g., due to a race condition or a long delay between generating the lock file and downloading), leading to a subsequent podman save failure (or even worse, different (cached) image being stored)?
|
Podman bug report: containers/podman#27323 |
|
I think we can close this as resolved by #1717, wdyt? |
|
Confirmed on slack we can close this one. |
To workaround the error "Digest of source image's manifest would not match destination reference", when image is saved using sha256.