Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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!

like image 347
Neda Ebrahimi Avatar asked Oct 17 '25 11:10

Neda Ebrahimi


2 Answers

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!

like image 161
Neda Ebrahimi Avatar answered Oct 20 '25 01:10

Neda Ebrahimi


if you are using docker on the mac

I was facing the same issue and it was resolved by

sudo chown -R $(id -u):$(id -g) $HOME/.docker
like image 33
swapnil wagh Avatar answered Oct 20 '25 00:10

swapnil wagh