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

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

    I had this issue as well. What happened with me was I forgot to run the command that was returned to me after I ran

    aws ecr get-login --region ap-southeast-2
    

    This command returned a big blob, which includes the docker login command right there! I didn't realise. It should return something like this:

    docker login -u AWS -p  -e none 
    

    Copy and paste this command & then run your docker push command which looks something like this:

    docker push 8888888.blah.blah.ap-southwest-1.amazonaws.com/dockerfilename
    

提交回复
热议问题