Remove email address field from login

This removes the email prompt when you use docker login, and also removes the ability to register via the docker cli. Docker login, will strictly be used for logging into a registry server.

Signed-off-by: Ken Cochrane <kencochrane@gmail.com>
This commit is contained in:
Ken Cochrane 2016-02-29 17:51:36 -08:00 committed by Tibor Vass
parent a305246793
commit 317cfbd7bd
6 changed files with 18 additions and 20 deletions

View File

@ -1205,14 +1205,14 @@ _docker_load() {
_docker_login() { _docker_login() {
case "$prev" in case "$prev" in
--email|-e|--password|-p|--username|-u) --password|-p|--username|-u)
return return
;; ;;
esac esac
case "$cur" in case "$cur" in
-*) -*)
COMPREPLY=( $( compgen -W "--email -e --help --password -p --username -u" -- "$cur" ) ) COMPREPLY=( $( compgen -W "--help --password -p --username -u" -- "$cur" ) )
;; ;;
esac esac
} }

View File

@ -221,8 +221,7 @@ complete -c docker -A -f -n '__fish_seen_subcommand_from load' -l help -d 'Print
complete -c docker -A -f -n '__fish_seen_subcommand_from load' -s i -l input -d 'Read from a tar archive file, instead of STDIN' complete -c docker -A -f -n '__fish_seen_subcommand_from load' -s i -l input -d 'Read from a tar archive file, instead of STDIN'
# login # login
complete -c docker -f -n '__fish_docker_no_subcommand' -a login -d 'Register or log in to a Docker registry server' complete -c docker -f -n '__fish_docker_no_subcommand' -a login -d 'Log in to a Docker registry server'
complete -c docker -A -f -n '__fish_seen_subcommand_from login' -s e -l email -d 'Email'
complete -c docker -A -f -n '__fish_seen_subcommand_from login' -l help -d 'Print usage' complete -c docker -A -f -n '__fish_seen_subcommand_from login' -l help -d 'Print usage'
complete -c docker -A -f -n '__fish_seen_subcommand_from login' -s p -l password -d 'Password' complete -c docker -A -f -n '__fish_seen_subcommand_from login' -s p -l password -d 'Password'
complete -c docker -A -f -n '__fish_seen_subcommand_from login' -s u -l username -d 'Username' complete -c docker -A -f -n '__fish_seen_subcommand_from login' -s u -l username -d 'Username'
@ -399,5 +398,3 @@ complete -c docker -f -n '__fish_docker_no_subcommand' -a version -d 'Show the D
complete -c docker -f -n '__fish_docker_no_subcommand' -a wait -d 'Block until a container stops, then print its exit code' complete -c docker -f -n '__fish_docker_no_subcommand' -a wait -d 'Block until a container stops, then print its exit code'
complete -c docker -A -f -n '__fish_seen_subcommand_from wait' -l help -d 'Print usage' complete -c docker -A -f -n '__fish_seen_subcommand_from wait' -l help -d 'Print usage'
complete -c docker -A -f -n '__fish_seen_subcommand_from wait' -a '(__fish_print_docker_containers running)' -d "Container" complete -c docker -A -f -n '__fish_seen_subcommand_from wait' -a '(__fish_print_docker_containers running)' -d "Container"

View File

@ -812,7 +812,6 @@ __docker_subcommand() {
(login) (login)
_arguments $(__docker_arguments) \ _arguments $(__docker_arguments) \
$opts_help \ $opts_help \
"($help -e --email)"{-e=,--email=}"[Email]:email: " \
"($help -p --password)"{-p=,--password=}"[Password]:password: " \ "($help -p --password)"{-p=,--password=}"[Password]:password: " \
"($help -u --user)"{-u=,--user=}"[Username]:username: " \ "($help -u --user)"{-u=,--user=}"[Username]:username: " \
"($help -)1:server: " && ret=0 "($help -)1:server: " && ret=0

View File

@ -14,6 +14,13 @@ weight=80
The following list of features are deprecated in Engine. The following list of features are deprecated in Engine.
### `-e` and `--email` flags on `docker login`
**Deprecated In Release: v1.11**
**Target For Removal In Release: v1.13**
The docker login command is removing the ability to automatically register for an account with the target registry if the given username doesn't exist. Due to this change, the email flag is no longer required, and will be deprecated.
### Ambiguous event fields in API ### Ambiguous event fields in API
**Deprecated In Release: v1.10** **Deprecated In Release: v1.10**

View File

@ -12,10 +12,9 @@ parent = "smn_cli"
Usage: docker login [OPTIONS] [SERVER] Usage: docker login [OPTIONS] [SERVER]
Register or log in to a Docker registry server, if no server is Log in to a Docker registry server, if no server is
specified "https://index.docker.io/v1/" is the default. specified "https://index.docker.io/v1/" is the default.
-e, --email="" Email
--help Print usage --help Print usage
-p, --password="" Password -p, --password="" Password
-u, --username="" Username -u, --username="" Username

View File

@ -2,18 +2,17 @@
% Docker Community % Docker Community
% JUNE 2014 % JUNE 2014
# NAME # NAME
docker-login - Register or log in to a Docker registry. docker-login - Log in to a Docker registry.
# SYNOPSIS # SYNOPSIS
**docker login** **docker login**
[**-e**|**--email**[=*EMAIL*]]
[**--help**] [**--help**]
[**-p**|**--password**[=*PASSWORD*]] [**-p**|**--password**[=*PASSWORD*]]
[**-u**|**--username**[=*USERNAME*]] [**-u**|**--username**[=*USERNAME*]]
[SERVER] [SERVER]
# DESCRIPTION # DESCRIPTION
Register or log in to a Docker Registry located on the specified Log in to a Docker Registry located on the specified
`SERVER`. You can specify a URL or a `hostname` for the `SERVER` value. If you `SERVER`. You can specify a URL or a `hostname` for the `SERVER` value. If you
do not specify a `SERVER`, the command uses Docker's public registry located at do not specify a `SERVER`, the command uses Docker's public registry located at
`https://registry-1.docker.io/` by default. To get a username/password for Docker's public registry, create an account on Docker Hub. `https://registry-1.docker.io/` by default. To get a username/password for Docker's public registry, create an account on Docker Hub.
@ -31,9 +30,6 @@ credentials. When you log in, the command stores encoded credentials in
> >
# OPTIONS # OPTIONS
**-e**, **--email**=""
Email
**--help** **--help**
Print usage statement Print usage statement