-
Notifications
You must be signed in to change notification settings - Fork 546
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
crane copy v1 image to registry which only supports v2 fails #732
Comments
Yeah... we decided to abandon support for schema 1 images because doing so violates a lot of nice properties; e.g. normally you can verify a copy by checking image digests, but if we transparently upgraded schema 1 images, we obviously can't preserve the digest since we're changing the artifact. I wouldn't be opposed to adding something that explicitly does this up-conversion, but I don't want that to happen automatically (it's very slow). Do you know if any tools exist to do this already? I know docker used to do this whenever you pushed an image that was pulled as schema 1, but installing docker can be a pain.
This branch would be really useful to have -- I'm not sure what happened to it 🤦♂️ |
I tried the same with skopeo and first I thought it does not work with it either. But I missed the
For this skopeo uses the function https://godoc.org/github.com/containers/image/copy#Image with the ForceManifestMIMEType set in the Options struct. It would be nice if the conversion would be supported in go-containerregistry library but I think it is not super urgent to us. We still would have the other problem you mentioned that we no longer can compare the digest to see if an image is up to date. So if we had the conversion feature we would have to change things there as well. For us we currently see the following options (no particular order):
|
This issue is stale because it has been open for 90 days with no |
/remove-lifecycle stale |
I'm considering revisiting the whole schema 1 up-conversion thing. Would that still be useful to you? |
Yes, that would still be useful. We use go-containerregistry to sync images from various locations to a local registry and for that it is practical if crane copy works for all/most image formats. |
This issue is stale because it has been open for 90 days with no |
When I try to copy an image with a v1 schema to a registry which only supports v2 (docker registry dropped the support for v1 images by default in 2.7.0) I get the following error:
Is it possible to convert the image to a v2 schema? It seems that this got already discussed in #377 (comment) but i could not find the appropriate code.
Steps to reproduce:
The text was updated successfully, but these errors were encountered: