I am trying to push a docker image to the aws ecr

When i try to login to ect,

aws ecr get-login

It expands to something like this

docker login -u AWS -p eyJwYXlsbXXXXXXVZIn0= -e none https://88888888888.dkr.ecr.us-west-2.amazonaws.com

I got this error message:

unknown shorthand flag: 'e' in -e
See 'docker login --help'.

I have already upgraded the awscli to latest version 1.11.135

How can I remove this exception?


Aws ecs has updated their 'Push Commands' on ecs repositories lately. It is now

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

You will also need to update the aws cli to the latest version

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.