Can’t push image to Amazon ECR – fails with “no basic auth credentials”
if you run $(aws ecr get-login –region us-east-1) it will be all done for you Update July 2021: get-login is now deprecated in version 1 of the AWS CLI. If you’re using version 2 of the AWS CLI, you must use get-login-password. You can pipe the output of get-login-password to your docker login command to … Read more