Docker: deprecated --email flag is now removed
The command aws ecr get login no longer provides a valid docker login command on the latest version of docker (17.06.0-ce).
The resulting command fails with the following output
❯ aws ecr get-login
❯ docker login -u AWS -p <private_key> -e none https://<snip>.dkr.ecr.us-east-1.amazonaws.com
unknown shorthand flag: 'e' in -e
See 'docker login --help'.
The --email option was deprecated previously, and removed in the latest version of docker https://docs.docker.com/release-notes/docker-ce/#17060-ce-2017-06-28.
This is breaking workflows for our developers, and should be fixed asap, as others will continue to upgrade to the latest version of docker.
Temporary fix: aws ecr get-login | sed 's/\-e none//'. I will attempt a PR for this later today.
I made this issue before digging into the code. Looks like there's already an option to not include the email https://github.com/aws/aws-cli/blob/develop/awscli/customizations/ecr.py#L49-L56.
Closing.