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

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

    if you run $(aws ecr get-login --region us-east-1) it will be all done for you

    0 讨论(0)
  • 2020-12-02 05:57

    On Windows in PowerShell, use:

    Invoke-Expression $(aws ecr get-login --no-include-email)
    
    0 讨论(0)
  • 2020-12-02 05:57

    FWIW, Debian 9, Docker version 18.06.1-ce, build e68fc7a:

    $(aws ecr get-login | sed 's| -e none | |g')

    0 讨论(0)
  • 2020-12-02 05:58

    After run this command:

    (aws ecr get-login --no-include-email --region us-west-2)

    just run the docker login command from the output

    docker login -u AWS -p epJ....

    is the way that docker login into ECR

    0 讨论(0)
  • 2020-12-02 06:02

    I experienced the same issue.

    Generating new AWS credentials (access keys) and reconfiguring AWS CLI with new credentials resolved the problem.

    Earlier, aws ecr get-login --region us-east-1 generated docker login command with invalid EC registry URL.

    0 讨论(0)
  • 2020-12-02 06:03

    In my case, after running aws ecr get-login --no-include-email --region *****, I just copied the output of that command with is of the form docker login -u *** -p ************, and you paste it in the prompt. The pushing went ahead.

    0 讨论(0)
提交回复
热议问题