Skip to content

Invalid '-e' flag for docker login generated by ecr get-login #2753

Description

@panga

Problem:
The 'ecr get-login' command is generating an incompatible syntax for latest docker version.
Docker 17.06 doesn't support the deprecated '-e' flag anymore and give the following error:

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

This is a blocker for all my scripts using aws ecr get-login.

Command:
aws ecr get-login

Result:
docker login -u AWS -p <token> -e none https://<accountid>.dkr.ecr.us-east-1.amazonaws.com

Versions:
aws-cli/1.11.129 Python/2.7.10 Darwin/16.7.0 botocore/1.5.92
Docker version 17.06.0-ce, build 02c1d87

'--email' flag removal PR: docker/cli#143

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue is a duplicate.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions