-
Notifications
You must be signed in to change notification settings - Fork 538
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: unable to copy between to registries (registry.gitlab.com and docker.io) #1404
Comments
@jonjohnsonjr sounds like another case of #1321 and a spec-non-compliant destination registry. |
We're having the same issue since crane 0.10.0 and this really seems like a bug or at least a regression.
@imjasonh I'm trying to parse your statement above which seems to state that the registries are non-compliant. But it seems to me that crane:0.10.0 is now attempting to use non-spec-compliant cross-origin mounting and getting a response that is unexpected and failing. The registry spec states that the registry |
We experienced the same issue copying from gcr to gitlab registry. To work around the issue we downgraded to 0.9.0 with no other changes, and everything resumed working again. I couldn't find any other viable work arounds for version 0.10.0. |
Same issue copying an image from an internal Gitlab registry to public |
Describe the bug
We copy images from gitlab.com to docker.io and until version 0.9.0 this worked fine. With version 0.10.0 this stopped working. The process has not been changed (written as pipeline job) and all authentication tokens still work. The error we receive is the following:
When executing the same command with crane v0.9.0 this works (same environment).
To Reproduce
I am not quite sure if this is really the problem, but if so it could be reproduced by copying a non-existing image from a public registry to docker.io.
Expected behavior
When copying from one registry to another this should not result in an unauthorized error if the required permissions have been granted.
Additional context
My uneducated guess is that as the URL
https://index.docker.io/[...]/uploads/?from=bbbatscale%2Fbbbatscale%2Fbbbatscale&[...]
states, it tries to use the imagebbbatscale/bbbatscale/bbbatscale
which most likely will be resolved todocker.io/bbbatscale/bbbatscale/bbbatscale
and this image does not exist, which therefore might cause the unauthorized error.crane version
:0.10.0
The text was updated successfully, but these errors were encountered: