I'm trying (and failing) to authenticate docker to AWS ECR. I've generated my AWS token via the AWS CLI aws ecr get-login command and have been provided with the following:
docker login -u AWS -p <token> --no-include-email https://***.dkr.ecr.eu-central-1.amazonaws.com.
However, when I execute this command, I get unknown flag : --no-include-email.
I've done much reading on the subject which all seem to say it's a version problem as --no-include-email flag was introduced to replace the deprecated -e none flag. I'm running the following versions:
Docker version 18.03.0-ce, build 0520e24302,
AWS CLI 1.16.88,
Python 3.6.0, and
Windows 7 x64.
I've even double checked my initial AWS CLI installation by installing AWS CLI via pip and checking for an upgraded version with pip install --user --upgrade awscli.
I initially had the error described docker login unknown shorthand flag: 'e'.
Everything is up-to-date.
It might be worth noting here that I am authenticating with AWS via a standard credentials file
[default]
aws_access_key_id = ***
aws_secret_access_key = ***
What am I missing?