Error with --email flag deprecation for `docker login`
See original GitHub issueIn the 17.0.6 docker engine update, the -e and --email flags were deprecated. Sending the -e
flag now results in a 400 error. The client should attempt to check the docker version or re-try without the email flag if it fails. This is a breaking change in the docker application, and should be fixed as soon as possible.
https://docs.docker.com/engine/deprecated/#-e-and---email-flags-on-docker-login
Originally encountered this issue with
$(aws ecr get-login)
This calls:
docker login -u AWS -p <TOKEN> -e none <ECR_URL>
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (2 by maintainers)
Top Results From Across the Web
docker login unknown flag: --no-include-email - Stack Overflow
The --no-include-email flag is an AWS CLI flag, not a docker flag. To use it, add it to your get-login call: $ aws...
Read more >Deprecated Engine Features - Docker Documentation
To make tagging consistent across the various docker commands, the -f flag on the docker tag command is deprecated. It is not longer...
Read more >Use kaniko to build Docker images - GitLab Docs
kaniko is a tool to build container images from a Dockerfile, inside a container or Kubernetes cluster. kaniko solves two problems with using...
Read more >Deprecated Engine Features - | Docker Documentation
The docker login command is removing the ability to automatically register for an account with the target registry if the given username doesn't...
Read more >Red Hat Quay Release Notes
(#2041, #2127, #2186, #2189, #2190); Notifications when a build is canceled (#2173, #2184); Remove deprecated email flag from generated docker login ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I had the same issue until I realized that the tokens are base64 encoded - RTFM fail 😦.
Sorry, shouldn’t have included the ecr bit in the issue. That was just how I was first made aware of the deprecation. I was collecting the URL and token from the ecr python sdk, and then using
docker-py
sdk to call docker login (not including an email field).The code segment worked before upgrading to docker 17.0.6 yesterday, and then it stopped working. Calling the command line
docker login
with the token and URL from the python ECR command works fine.This was the call I made. Using the same param values here in the command line worked fine, but failed in
docker-py
The error is: