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

后端 未结 30 2017
旧巷少年郎
旧巷少年郎 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:44

    There has just been an update where get-login was removed from AWS, instead use get-login-password:

    sudo docker login -u AWS -p $(aws ecr get-login-password --region  - 
    -profile ) .dkr.ecr.eu-north-1.amazonaws.com 
    

    Dont forget to remove the --profile flag if using default credentials

提交回复
热议问题