diff --git a/cli/common.go b/cli/common.go index d3aa391be2..c03d9a90e5 100644 --- a/cli/common.go +++ b/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"}, diff --git a/contrib/completion/bash/docker b/contrib/completion/bash/docker index 739d97b2d7..c1720e458c 100644 --- a/contrib/completion/bash/docker +++ b/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 } diff --git a/docs/reference/commandline/network_ls.md b/docs/reference/commandline/network_ls.md index 0d2294e6fc..09f290f06c 100644 --- a/docs/reference/commandline/network_ls.md +++ b/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