Added network
to docker --help and help cleanup
Fixes https://github.com/docker/docker/issues/16909 Signed-off-by: Madhu Venugopal <madhu@docker.com>
This commit is contained in:
parent
919c3c1ec8
commit
46f7ab3585
3 changed files with 2 additions and 3 deletions
|
@ -45,6 +45,7 @@ var dockerCommands = []Command{
|
||||||
{"login", "Register or log in to a Docker registry"},
|
{"login", "Register or log in to a Docker registry"},
|
||||||
{"logout", "Log out from a Docker registry"},
|
{"logout", "Log out from a Docker registry"},
|
||||||
{"logs", "Fetch the logs of a container"},
|
{"logs", "Fetch the logs of a container"},
|
||||||
|
{"network", "Manage Docker networks"},
|
||||||
{"pause", "Pause all processes within a container"},
|
{"pause", "Pause all processes within a container"},
|
||||||
{"port", "List port mappings or a specific mapping for the CONTAINER"},
|
{"port", "List port mappings or a specific mapping for the CONTAINER"},
|
||||||
{"ps", "List containers"},
|
{"ps", "List containers"},
|
||||||
|
|
|
@ -1060,7 +1060,7 @@ _docker_network_ls() {
|
||||||
|
|
||||||
case "$cur" in
|
case "$cur" in
|
||||||
-*)
|
-*)
|
||||||
COMPREPLY=( $( compgen -W "--help --latest -l -n --no-trunc --quiet -q" -- "$cur" ) )
|
COMPREPLY=( $( compgen -W "--help --no-trunc --quiet -q" -- "$cur" ) )
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,8 +14,6 @@ parent = "smn_cli"
|
||||||
|
|
||||||
Lists all the networks created by the user
|
Lists all the networks created by the user
|
||||||
--help=false Print usage
|
--help=false Print usage
|
||||||
-l, --latest=false Show the latest network created
|
|
||||||
-n=-1 Show n last created networks
|
|
||||||
--no-trunc=false Do not truncate the output
|
--no-trunc=false Do not truncate the output
|
||||||
-q, --quiet=false Only display numeric IDs
|
-q, --quiet=false Only display numeric IDs
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue