Pārlūkot izejas kodu

Merge pull request #17057 from mavenugo/nls

Added `network` to docker --help and help cleanup
David Calavera 9 gadi atpakaļ
vecāks
revīzija
f255155f6b

+ 1 - 0
cli/common.go

@@ -45,6 +45,7 @@ var dockerCommands = []Command{
 	{"login", "Register or log in to a Docker registry"},
 	{"logout", "Log out from a Docker registry"},
 	{"logs", "Fetch the logs of a container"},
+	{"network", "Manage Docker networks"},
 	{"pause", "Pause all processes within a container"},
 	{"port", "List port mappings or a specific mapping for the CONTAINER"},
 	{"ps", "List containers"},

+ 1 - 1
contrib/completion/bash/docker

@@ -1060,7 +1060,7 @@ _docker_network_ls() {
 
 	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
 }

+ 0 - 2
docs/reference/commandline/network_ls.md

@@ -14,8 +14,6 @@ parent = "smn_cli"
 
     Lists all the networks created by the user
       --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
       -q, --quiet=false     Only display numeric IDs