Docker login unknown abbreviated flag: 'e'

I just updated the docker version and found out that the team

aws ecr get-login 

does not work any more. Received error:

unknown abbreviated flag: 'e' in -e`. Docker seems to no longer support the -e flag.

Is there any way to fix this?

Installed Versions:

 aws-cli/1.11.111 Python/2.7.10 Darwin/16.6.0 botocore/1.5.74 Docker version 17.06.0-ce-rc5, build b7e4173 
+58
docker amazon-ecs
Jun 23 '17 at 13:12
source share
3 answers

add this to your call

 --no-include-email 

here is the new correct syntax:

 aws ecr get-login ${normal_params_here} --no-include-email aws ecr get-login --region us-east-1 --no-include-email # for example 

This new option is available in AWS CLI since version 1.11.91 released on 05/23/2017 ... for updating:

 pip install --upgrade awscli 

see details here

https://github.com/docker/for-mac/issues/1762

https://github.com/aws/aws-cli/issues/1926

:

"You should have received an email notification from Amazon around May 23, 2017 about the new --no-include-email flag on aws ecr get-login for compatibility with [Docker] 06/17/.0"

+93
Jun 23 '17 at 13:26
source share

if for some reason you cannot upgrade awscli, you can manipulate the lines a bit to make you work with sed.

eg:

 $(aws ecr get-login --region eu-central-1 | sed -e 's/-e none//g') 

this will clear the -e flag, which is not supported, and you must be logged in.

+3
Oct 02 '17 at 9:01 on
source share

I had the same problem, but after Scott Stensland's answer, this did not solve.

In case this happens to someone else, resetting "-e none" from the command resolved the issue.

+3
Oct. 25 '17 at 11:56 on
source share



All Articles