mirror of https://github.com/docker/cli.git
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:
parent
a305246793
commit
317cfbd7bd
|
@ -811,7 +811,7 @@ _docker_daemon() {
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
local key=$(__docker_map_key_of_current_option '--storage-opt')
|
local key=$(__docker_map_key_of_current_option '--storage-opt')
|
||||||
case "$key" in
|
case "$key" in
|
||||||
dm.@(blkdiscard|override_udev_sync_check|use_deferred_@(removal|deletion)))
|
dm.@(blkdiscard|override_udev_sync_check|use_deferred_@(removal|deletion)))
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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**
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
@ -27,10 +26,10 @@ adding the server name.
|
||||||
$ docker login localhost:8080
|
$ docker login localhost:8080
|
||||||
|
|
||||||
|
|
||||||
`docker login` requires user to use `sudo` or be `root`, except when:
|
`docker login` requires user to use `sudo` or be `root`, except when:
|
||||||
|
|
||||||
1. connecting to a remote daemon, such as a `docker-machine` provisioned `docker engine`.
|
1. connecting to a remote daemon, such as a `docker-machine` provisioned `docker engine`.
|
||||||
2. user is added to the `docker` group. This will impact the security of your system; the `docker` group is `root` equivalent. See [Docker Daemon Attack Surface](https://docs.docker.com/security/security/#docker-daemon-attack-surface) for details.
|
2. user is added to the `docker` group. This will impact the security of your system; the `docker` group is `root` equivalent. See [Docker Daemon Attack Surface](https://docs.docker.com/security/security/#docker-daemon-attack-surface) for details.
|
||||||
|
|
||||||
You can log into any public or private repository for which you have
|
You can log into any public or private repository for which you have
|
||||||
credentials. When you log in, the command stores encoded credentials in
|
credentials. When you log in, the command stores encoded credentials in
|
||||||
|
|
|
@ -2,26 +2,25 @@
|
||||||
% 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.
|
||||||
|
|
||||||
`docker login` requires user to use `sudo` or be `root`, except when:
|
`docker login` requires user to use `sudo` or be `root`, except when:
|
||||||
|
|
||||||
1. connecting to a remote daemon, such as a `docker-machine` provisioned `docker engine`.
|
1. connecting to a remote daemon, such as a `docker-machine` provisioned `docker engine`.
|
||||||
2. user is added to the `docker` group. This will impact the security of your system; the `docker` group is `root` equivalent. See [Docker Daemon Attack Surface](https://docs.docker.com/articles/security/#docker-daemon-attack-surface) for details.
|
2. user is added to the `docker` group. This will impact the security of your system; the `docker` group is `root` equivalent. See [Docker Daemon Attack Surface](https://docs.docker.com/articles/security/#docker-daemon-attack-surface) for details.
|
||||||
|
|
||||||
You can log into any public or private repository for which you have
|
You can log into any public or private repository for which you have
|
||||||
credentials. When you log in, the command stores encoded credentials in
|
credentials. When you log in, the command stores encoded credentials in
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue