Can't push image to Amazon ECR - fails with “no basic auth credentials”

后端 未结 30 2123
旧巷少年郎
旧巷少年郎 2020-12-02 05:07

I\'m trying to push a docker image to an Amazon ECR registry. I\'m using docker client Docker version 1.9.1, build a34a1d5. I use aws ecr get-login --regi

30条回答
  •  猫巷女王i
    2020-12-02 05:56

    Following command works for me:

    sudo $(aws ecr get-login --region us-east-1 --no-include-email)
    

    And Then I run these commands:

    sudo docker tag e9ae3c220b23(image_id) aws_account_id.dkr.ecr.region.amazonaws.com/my-web-app
    
    sudo docker push aws_account_id.dkr.ecr.region.amazonaws.com/my-web-app
    

提交回复
热议问题