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

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

    This error generally gets thrown if ecr login has failed. I am using windows system and I used "Powershell" in Administrator mode to login to ecr first.

    Invoke-Expression $(aws ecr get-login --no-include-email)
    

    This should output "Login succeeded".

提交回复
热议问题