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

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

    I faced the same issue and the mistake I did was using the wrong repo path

    eg: docker push xxxxxxxxxxxxxx.dkr.ecr.us-east-1.amazonaws.com/jenkins:latest

    In the above path this is where I've done the mistake: In "dkr.ecr.us-east-1.amazonaws.com" instead of "west". I was using "east". Once I corrected my mistake, I was able to push the image successfully.

提交回复
热议问题