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

后端 未结 30 2019
旧巷少年郎
旧巷少年郎 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条回答
  •  遥遥无期
    2020-12-02 05:54

    Update

    Since AWS CLI version 2 - aws ecr get-login is deprecated and the correct method is aws ecr get-login-password.

    Therefore the correct and updated answer is the following: docker login -u AWS -p $(aws ecr get-login-password --region us-east-1) xxxxxxxx.dkr.ecr.us-east-1.amazonaws.com

提交回复
热议问题