-
Notifications
You must be signed in to change notification settings - Fork 97
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
Error fetching image manifest list from private AWS ECR repo #143
Comments
In the same environment in which I saw the error above, I was able to successfully pull the image from the private AWS ECR repo using
So I do not think that the error is from having inadequate permissions or authentication issues in my environment. |
How did you setup the credentials file? Did you follow https://github.com/NVIDIA/enroot/blob/master/doc/cmd/import.md#description? |
Yes, my .credentials file is: |
Um not sure what's happening then, maybe ECR changed their authentication scheme. |
Was there a solution to this problem? Currently running into the same issue. I get a proper authentication, but end up with the same unable to parse json input error. |
I'm using this workaround:
I think the underlying issue is still there. |
@3XX0 hello! Apologies I meant to help look at this a long while back, and got distracted with comparing how it might have worked before. I did look at the temporary patch in #59 which I agree is a bit gross, but does work. ECR doesn't have a auth endpoint. It's designed to be a multi-tenant registry, and treats repos as a tenancy boundary. It can be fiddly to deal with when working with the v2 OCI API. The GetAuthorizationToken API needs to be used, or 'aws ecr get-authorization-token' vs 'aws ecr get-login-password'. So, the best way I think is to add in a change like you had done in that issue comment. I can file a PR |
I have been trying to use
enroot import
with a private AWS ECR repository, and have been running into an issue when retrieving the image manifest list. I was able to setup my.credentials
file and successfully complete the authentication step following NVIDIA/enroot#59, however when fetching the image manifest list I got the following error:This error is being thrown by the
common::jq
function being called indocker::_download
, and when printing the curl response that is being passed intocommon::jq
, I found that the response to the manifest list request wasNot Authorized
in plain text. This error has been thrown both when installing enroot from source and from packages.Do you have any insight into resolving this issue?
Enroot version: 3.4.0
Docker version: 20.10.17
The text was updated successfully, but these errors were encountered: