Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWS EC2 AMAZON LINUX not implemented #419

Open
devcaco opened this issue Oct 15, 2022 · 2 comments
Open

AWS EC2 AMAZON LINUX not implemented #419

devcaco opened this issue Oct 15, 2022 · 2 comments

Comments

@devcaco
Copy link

devcaco commented Oct 15, 2022

Hello, I'm running an EC2 with amazon linux and I followed the setup guide but when I try to docker login I get the following error:

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

Any help would be greatly appreciated.

Thanks

@serhio-k
Copy link

serhio-k commented Oct 21, 2022

Hi. The problem is in /home/<username>/.docker/config.json file. I suppose you set a credstore to ecr in it.
IDK where I found the solution, but you have to do the following:

  1. (Only if you already have set ecr as a credstore in your .docker/config file). cat /dev/null > ~/.docker/config.json
  2. Login to ECR aws ecr get-login-password --region <aws-region> | docker login --username AWS --password-stdin <account-id>.dkr.ecr.eu-central-1.amazonaws.com
  3. Replace credential store in ~/.docker/config file: cat /dev/null > ~/.docker/config.json && cat << EOF > ~/.docker/config.json { "credsStore": "ecr-login" } EOF
  4. Pull one of the containers from your ECR repo docker pull <account-id>.dkr.ecr.eu-central-1.amazonaws.com:<image>
  5. Enjoy

@hannes-ucsc
Copy link

#474 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants