amazon-web-servicesdockeramazon-ecr

Error when logging into ECR with Docker login: "Error saving credentials... not implemented"


I'm trying to log in to AWS ECR with the Docker login command. I can get a password with the AWS CLI with the command aws ecr get-login-password but when piping this into the docker login command I get the following error:

Error saving credentials: error storing credentials - err: exit status 1, out: `not implemented`

The command I am running is the one recommended in the AWS ECR documentation:

aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin account_id_redacted.dkr.ecr.us-east-1.amazonaws.com/blog-project

I'm running the latest version of AWS CLI as of this question, 2.0.57.

I'm running Docker version 2.4.0 on macOS 10.14.6

Has anyone else run into this issue, and if so have they found a solution?

I've definitely achieved this in the past, but I wonder if there is an issue between the latest versions of Docker and the AWS CLI...


Solution

  • I'm not 100% sure what the issue was here, but it was something to do with the Docker credentials helper.

    I installed the Docker credentials helper for macOS, changed the credsStore parameter in ~/.docker/config.json to osxkeychain. That fixed the issues.