-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
podman save --format oci-archive: loses image ID #7371
Comments
@mtrmac, do you think it's a bug or feature request/enhancement? |
In general, neither. The change ultimately happens in https://github.com/containers/image/blob/1c313b2d23e039a81a64bbced1b2b427d60429e1/image/docker_schema2.go#L78 , and as the comment says, the conversion from v2s2 to OCI is lossy (IIRC OCI does not have health checks). So, workflows that convert from v2s2 to OCI should be prepared for the config digest == image ID changing. (If the missing fields are the only difference between the formats, we could check that nothing of substance has changed when doing the conversion, and in that case use the original raw bytes to preserve the ID. I don’t think that’s desirable: it’s extra code to preserve an illusion of a property that does not hold in general.) |
@edsantiago Does this answer your question? |
Yes, it does. Thanks @mtrmac. |
I entirely oversaw the conversion, thanks for clarifying @mtrmac! |
- run tests: better "skip" message for docker-archive test; remove FIXME, document that podman-remote doesn't support it - run tests: instrument the --conmon-pidfile test in hopes of tracking down flake containers#7580: cross-check pidfile against output of 'podman inspect', and add some debug messages that will only be seen on test failure. - load tests: the pipe test: save and load a temporary tag, not $IMAGE. Primary reason is because of containers#7371, in which 'podman load' assigns a new image ID (instead of preserving the saved one). This messes with our image management, and it turns out to be nonfixable. Signed-off-by: Ed Santiago <[email protected]>
This may not be a bug, but I think it is, because
podman save
without--format oci-archive
preserves image ID.Commenting out
OCI_FORMAT=
makes all the IIDs agree.master @ 7e2a1b3
The text was updated successfully, but these errors were encountered: