No basic auth credentials error in docker push to ECR

Asked 1 years ago, Updated 1 years ago, 43 views

https://yomon.hatenablog.com/entry/2019/08/fargateselenium

I tried to move selenium on aws by following the instructions on the page above, but docker push didn't work and got stuck.

 docker push 123456789012.dkr.ecr.ap-northeast-1.amazonaws.com/yomon8title

Then,

no basic auth credentials

The error occurred.
https://qiita.com/NaokiIshimura/items/1886dbd04631c3f7d0e1
I also checked the permissions of the account, the access key and the secret access key, and there was no problem, but I still get the same error.
Could you tell me how to do docker push?

aws docker

2022-09-30 10:37

1 Answers

The official document provides troubleshooting information for the error no basic auth credentials.

Troubleshooting Docker Command Errors Using Amazon ECR - Amazon ECR

Use this as a reference.

  • Have you done docker login for the correct region
  • docker login has not expired
  • (additional) If you are using Docker for Windows, remove the https:// portion of the command generated by issuing awsecr get-login

Please check the .

Also, just in case, it might be a good idea to check if your account has permission to write to ECR.

Amazon ECR Management Policy - Amazon ECR

You must have AmazonEC2ContainerRegistryFullAccess or AmazonEC2ContainerRegistryPowerUser privileges to the appropriate repository.

You can also verify that at least read permissions exist by executing commands such as awsecr description-repositions.


2022-09-30 10:37

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.