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
if you run $(aws ecr get-login --region us-east-1)
it will be all done for you
On Windows in PowerShell, use:
Invoke-Expression $(aws ecr get-login --no-include-email)
FWIW, Debian 9, Docker version 18.06.1-ce, build e68fc7a:
$(aws ecr get-login | sed 's| -e none | |g')
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
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.
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.