Aws-cli: docker login doesn't work. Error message is "The user name or passphrase you entered is not correct."

Created on 13 Apr 2018  ·  7Comments  ·  Source: aws/aws-cli

Hi,

I'm running command eval $(aws ecr get-login --region --no-include-email) and I'm receiving below error:

WARNING! Using --password via the CLI is insecure. Use --password-stdin.
Error saving credentials: error storing credentials - err: exit status 1, out: `The user name or passphrase you entered is not correct.`

aws --version: aws-cli/1.14.60 Python/3.6.5 Darwin/17.4.0 botocore/1.9.13
docker --version: Docker version 18.03.0-ce, build 0520e24
MacOS High Sierra (10.13.3)

Would like to know why this error is occurring and how do I fix it? I tried to research here in aws docs, it but no luck

Thank you,
99

closing-soon

Most helpful comment

Try opening Keychain Access
Right-click on the login keychain
Lock it and then unlock it again

All 7 comments

Try opening Keychain Access
Right-click on the login keychain
Lock it and then unlock it again

Well, it worked for me! What is the reasoning behind that?

Looks like there may be a bug in the osx keychain credential helper in docker on newer versions of osx: https://github.com/docker/docker-credential-helpers/issues/65

Some have said that rebooting solves the problem. Some have said that removing that credential helper fixes it, though I would highly suggest trying other avenues before you do that.

It doesn't appear that this is a CLI issue though. If you find more info then let us know.

@JordonPhillips made it work after reboots, restarts, reinstall, etc . Have no idea what fixed it. So not much here to share.( But I have 2 more co-workers who just got their new High Sierra laptops and hit the same problem)
I think we can close this ticket not much here

@99 feel free to close it then :)

Removing "credsStore": "osxkeychain" from ~/.docker/config.json instead.

Thanks @dennislky - your https://github.com/aws/aws-cli/issues/3264#issuecomment-381478869 worked for me on macOS 10.13 with Docker 19.03.8. Simplest solution I've seen, tried various other options including editing ~/.docker/config.json

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ronaldpetty picture ronaldpetty  ·  3Comments

pawelkilian picture pawelkilian  ·  3Comments

KimberleySDU picture KimberleySDU  ·  3Comments

schams-net picture schams-net  ·  3Comments

ypant picture ypant  ·  3Comments