amazon-ecr-credential-helper icon indicating copy to clipboard operation
amazon-ecr-credential-helper copied to clipboard

Getting the error error storing credentials - err: exit status 1, out: `not implemented`

Open dean-hpe opened this issue 2 years ago • 6 comments

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.

dean-hpe avatar Jul 22 '23 21:07 dean-hpe

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

merlinran avatar Jul 23 '23 20:07 merlinran

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?

pauldthomson avatar Aug 08 '23 21:08 pauldthomson