You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to pull an image from registry.access.redhat.com but it fails. With docker pull i'am able to get the image. It seems that the registry responds with the wrong Content-Type. Would it be possible to make go-containerregistry more tolerant to handle such a case?
$ ./crane pull registry.access.redhat.com/rhel7/rhel-atomic:7.3 abc.img
2019/11/17 22:50:36 No matching credentials were found, falling back on anonymous
2019/11/17 22:50:37 Unexpected media type for Image(): text/plain
2019/11/17 22:50:38 saving tarball abc.img: unsupported status code 404; body: File not found."
The text was updated successfully, but these errors were encountered:
Would it be possible to make go-containerregistry more tolerant to handle such a case?
It's possible, but I'm pretty reluctant to do so. We assume pretty much everywhere a schema 2 structure, and I'd really love schema 1 to die, rather than let it limp along by supporting it.
It looks like these images are published as schema 2 as of registry.access.redhat.com/rhel7/rhel-atomic:7.5
If schema 1 support is really crucial for you, I'd consider a PR that does up-conversion to schema 2 when pulling it, but that up-conversion is pretty expensive, so I'd prefer just considering it wontfix and trying to move the world forward.
I try to pull an image from registry.access.redhat.com but it fails. With
docker pull
i'am able to get the image. It seems that the registry responds with the wrongContent-Type
. Would it be possible to make go-containerregistry more tolerant to handle such a case?The text was updated successfully, but these errors were encountered: