4

I have all AWS CLI and docker setup and running for a while. I changed the command codes to all run from a bash file. However, when running the docker push I get this error Error saving credentials: error storing credentials - err: exit status 1, out: `not implemented

I tried AWS_DEFAULT_PROFILE="aaa" docker push ... and docker push --profile=aaa nut none of them either worked. I do not see any similar issue like 'not implemented' on Google!

Any help is appreciated!

Neda Ebrahimi
  • 185
  • 2
  • 11

1 Answers1

11

Here is the solution I found, thanks to docker login: error storing credentials `The stub received bad data.`

The .docker/config.json looks like this:

{
  "auths" : {

  },
  "stackOrchestrator" : "swarm",
  "HttpHeaders" : {
    "User-Agent" : "Docker-Client/19.03.8 (darwin)"
  },
  "credsStore" : "ecr-login"
}

by removing "credsStore" : "ecr-login" it worked!

Neda Ebrahimi
  • 185
  • 2
  • 11
  • This worked also on windows! Thanks! – Gonzalo Gallotti Jan 17 '23 at 13:45
  • This solution also worked for me: Docker version 20.10.23, docker-credential-helper-ecr/0.6.0 The documentation stills says it's required. (https://github.com/awslabs/amazon-ecr-credential-helper#docker) – Zaq Apr 05 '23 at 06:48