amazon-ecr-credential-helper
amazon-ecr-credential-helper copied to clipboard
Getting the error error storing credentials - err: exit status 1, out: `not implemented`
I'm running a Ubuntu22 VM using VMWare Fusion 13. The host OS is MacOS on M1 Apple silicon. I build docker-credential-ecr-login following the docs like this:
go install github.com/awslabs/amazon-ecr-credential-helper/ecr-login/cli/docker-credential-ecr-login@latest
The following command gives this error:
aws ecr get-login-password --region us-west-2 | docker login --username AWS --password-stdin <ID>.dkr.ecr.us-west-2.amazonaws.com
Error saving credentials: error storing credentials - err: exit status 1, out: `not implemented`
Lots of people have seen this and none of the suggestions have worked.
The culprit is https://github.com/awslabs/amazon-ecr-credential-helper/blob/main/ecr-login/ecr.go#L75 . Just changing both methods to return nil fixed the error. Will have a PR soon
I don't know if that's the correct fix, rather shouldn't it be doing what this line is doing?
That function is called by docker login which you don't technically need to use with this helper, but I'm not sure if that's breaking the credential helper protocol?