From f0f9aca5104f9a7982278ef753cf08db2d864adb Mon Sep 17 00:00:00 2001 From: Artur Juraszek Date: Sun, 24 Jun 2018 14:49:07 +0200 Subject: [PATCH 01/14] Add `volume` subcommand support to fish completions Signed-off-by: Artur Juraszek --- contrib/completion/fish/docker.fish | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/contrib/completion/fish/docker.fish b/contrib/completion/fish/docker.fish index b58332779fdf..e8dfd191c5db 100644 --- a/contrib/completion/fish/docker.fish +++ b/contrib/completion/fish/docker.fish @@ -16,7 +16,7 @@ function __fish_docker_no_subcommand --description 'Test if docker has yet to be given the subcommand' for i in (commandline -opc) - if contains -- $i attach build commit cp create diff events exec export history images import info inspect kill load login logout logs network pause port ps pull push rename restart rm rmi run save search start stop tag top trust unpause version wait stats + if contains -- $i attach build commit cp create diff events exec export history images import info inspect kill load login logout logs pause port ps pull push rename restart rm rmi run save search start stop tag top trust unpause version volume wait stats return 1 end end @@ -81,6 +81,10 @@ function __fish_print_docker_repositories --description 'Print a list of docker docker images --format "{{.Repository}}" | command grep -v '' | command sort | command uniq end +function __fish_print_docker_volume_names --description 'Print a list of docker volumes' + docker volume ls --format "{{.Name}}" +end + # common options complete -c docker -f -n '__fish_docker_no_subcommand' -l api-cors-header -d "Set CORS headers in the Engine API. Default is cors disabled" complete -c docker -f -n '__fish_docker_no_subcommand' -s b -l bridge -d 'Attach containers to a pre-existing network bridge' @@ -580,6 +584,15 @@ complete -c docker -f -n '__fish_docker_no_subcommand' -a version -d 'Show the D complete -c docker -A -f -n '__fish_seen_subcommand_from version' -s f -l format -d 'Format the output using the given go template' complete -c docker -A -f -n '__fish_seen_subcommand_from version' -l help -d 'Print usage' +# volume +complete -c docker -f -n '__fish_docker_no_subcommand' -a volume -d 'Manage volumes' +complete -c docker -f -n '__fish_seen_subcommand_from volume' -a create -d 'Create a volume' +complete -c docker -f -n '__fish_seen_subcommand_from volume' -a inspect -d 'Display detailed information on one or more volumes' +complete -c docker -f -n '__fish_seen_subcommand_from volume' -a ls -d 'List volumes' +complete -c docker -f -n '__fish_seen_subcommand_from volume' -a prune -d 'Remove all unused local volumes' +complete -c docker -f -n '__fish_seen_subcommand_from volume' -a rm -d 'Remove one or more volumes' +complete -c docker -f -n '__fish_seen_subcommand_from volume; and __fish_seen_subcommand_from rm' -a '(__fish_print_docker_volume_names)' -d 'Volume' + # wait 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' From 85fa5167fa40f83875df10fd1b51e630373cc029 Mon Sep 17 00:00:00 2001 From: Artur Juraszek Date: Sun, 24 Jun 2018 15:32:15 +0200 Subject: [PATCH 02/14] Add `config` subcommand support to fish completions Signed-off-by: Artur Juraszek --- contrib/completion/fish/docker.fish | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/contrib/completion/fish/docker.fish b/contrib/completion/fish/docker.fish index e8dfd191c5db..d8f95820398d 100644 --- a/contrib/completion/fish/docker.fish +++ b/contrib/completion/fish/docker.fish @@ -16,7 +16,7 @@ function __fish_docker_no_subcommand --description 'Test if docker has yet to be given the subcommand' for i in (commandline -opc) - if contains -- $i attach build commit cp create diff events exec export history images import info inspect kill load login logout logs pause port ps pull push rename restart rm rmi run save search start stop tag top trust unpause version volume wait stats + if contains -- $i attach build commit config cp create diff events exec export history images import info inspect kill load login logout logs pause port ps pull push rename restart rm rmi run save search start stats stop tag top trust unpause version volume wait return 1 end end @@ -173,6 +173,13 @@ complete -c docker -A -f -n '__fish_seen_subcommand_from commit' -s m -l message complete -c docker -A -f -n '__fish_seen_subcommand_from commit' -s p -l pause -d 'Pause container during commit' complete -c docker -A -f -n '__fish_seen_subcommand_from commit' -a '(__fish_print_docker_containers all)' -d "Container" +# config +complete -c docker -f -n '__fish_docker_no_subcommand' -a config -d "Manage Docker configs" +complete -c docker -f -n '__fish_seen_subcommand_from config' -a create -d 'Create a config from a file or STDIN' +complete -c docker -f -n '__fish_seen_subcommand_from config' -a inspect -d 'Display detailed information on one or more configs' +complete -c docker -f -n '__fish_seen_subcommand_from config' -a ls -d 'List configs' +complete -c docker -f -n '__fish_seen_subcommand_from config' -a rm -d 'Remove one or more configs' + # cp complete -c docker -f -n '__fish_docker_no_subcommand' -a cp -d "Copy files/folders between a container and the local filesystem" complete -c docker -A -f -n '__fish_seen_subcommand_from cp' -s a -l archive -d 'Archive mode (copy all uid/gid information)' From c89ec0d3fd15f817733ae06c8f0bd11bdc961dc8 Mon Sep 17 00:00:00 2001 From: Artur Juraszek Date: Sun, 24 Jun 2018 16:19:39 +0200 Subject: [PATCH 03/14] Add `network` subcommand support to fish completions Signed-off-by: Artur Juraszek --- contrib/completion/fish/docker.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/completion/fish/docker.fish b/contrib/completion/fish/docker.fish index d8f95820398d..f6061dfa0454 100644 --- a/contrib/completion/fish/docker.fish +++ b/contrib/completion/fish/docker.fish @@ -16,7 +16,7 @@ function __fish_docker_no_subcommand --description 'Test if docker has yet to be given the subcommand' for i in (commandline -opc) - if contains -- $i attach build commit config cp create diff events exec export history images import info inspect kill load login logout logs pause port ps pull push rename restart rm rmi run save search start stats stop tag top trust unpause version volume wait + if contains -- $i attach build commit config cp create diff events exec export history images import info inspect kill load login logout logs network pause port ps pull push rename restart rm rmi run save search start stats stop tag top trust unpause version volume wait return 1 end end From d08a570ec4e20040abf1c533685d438e1e5055df Mon Sep 17 00:00:00 2001 From: Artur Juraszek Date: Sun, 24 Jun 2018 16:40:08 +0200 Subject: [PATCH 04/14] Add `node` subcommand support to fish completions Signed-off-by: Artur Juraszek --- contrib/completion/fish/docker.fish | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/contrib/completion/fish/docker.fish b/contrib/completion/fish/docker.fish index f6061dfa0454..78457c4880f5 100644 --- a/contrib/completion/fish/docker.fish +++ b/contrib/completion/fish/docker.fish @@ -16,7 +16,7 @@ function __fish_docker_no_subcommand --description 'Test if docker has yet to be given the subcommand' for i in (commandline -opc) - if contains -- $i attach build commit config cp create diff events exec export history images import info inspect kill load login logout logs network pause port ps pull push rename restart rm rmi run save search start stats stop tag top trust unpause version volume wait + if contains -- $i attach build commit config cp create diff events exec export history images import info inspect kill load login logout logs network node pause port ps pull push rename restart rm rmi run save search start stats stop tag top trust unpause version volume wait return 1 end end @@ -402,6 +402,16 @@ complete -c docker -A -f -n '__fish_seen_subcommand_from network connect' -a '(_ complete -c docker -A -f -n '__fish_seen_subcommand_from network disconnect' -a '(__fish_print_docker_networks)' -d "Network" complete -c docker -A -f -n '__fish_seen_subcommand_from network inspect' -a '(__fish_print_docker_networks)' -d "Network" +# node +complete -c docker -f -n '__fish_docker_no_subcommand' -a node -d 'Manage Swarm nodes' +complete -c docker -f -n '__fish_seen_subcommand_from node' -a demote -d 'Demote one or more nodes from manager in the swarm' +complete -c docker -f -n '__fish_seen_subcommand_from node' -a inspect -d 'Display detailed information on one or more nodes' +complete -c docker -f -n '__fish_seen_subcommand_from node' -a ls -d 'List nodes in the swarm' +complete -c docker -f -n '__fish_seen_subcommand_from node' -a promote -d 'Promote one or more nodes to manager in the swarm' +complete -c docker -f -n '__fish_seen_subcommand_from node' -a ps -d 'List tasks running on one or more nodes, defaults to current node' +complete -c docker -f -n '__fish_seen_subcommand_from node' -a rm -d 'Remove one or more nodes from the swarm' +complete -c docker -f -n '__fish_seen_subcommand_from node' -a update -d 'Update a node' + # port complete -c docker -f -n '__fish_docker_no_subcommand' -a port -d 'Lookup the public-facing port that is NAT-ed to PRIVATE_PORT' complete -c docker -A -f -n '__fish_seen_subcommand_from port' -l help -d 'Print usage' From 40baf90380f4449f608ead2d2c7b65819e68c5bf Mon Sep 17 00:00:00 2001 From: Artur Juraszek Date: Sun, 24 Jun 2018 19:10:18 +0200 Subject: [PATCH 05/14] Add `secret` subcommand support to fish completions Signed-off-by: Artur Juraszek --- contrib/completion/fish/docker.fish | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/contrib/completion/fish/docker.fish b/contrib/completion/fish/docker.fish index 78457c4880f5..465c6d14d8d6 100644 --- a/contrib/completion/fish/docker.fish +++ b/contrib/completion/fish/docker.fish @@ -16,7 +16,7 @@ function __fish_docker_no_subcommand --description 'Test if docker has yet to be given the subcommand' for i in (commandline -opc) - if contains -- $i attach build commit config cp create diff events exec export history images import info inspect kill load login logout logs network node pause port ps pull push rename restart rm rmi run save search start stats stop tag top trust unpause version volume wait + if contains -- $i attach build commit config cp create diff events exec export history images import info inspect kill load login logout logs network node pause port ps pull push rename restart rm rmi run save secret search start stats stop tag top trust unpause version volume wait return 1 end end @@ -528,6 +528,13 @@ complete -c docker -A -f -n '__fish_seen_subcommand_from save' -l help -d 'Print complete -c docker -A -f -n '__fish_seen_subcommand_from save' -s o -l output -d 'Write to an file, instead of STDOUT' complete -c docker -A -f -n '__fish_seen_subcommand_from save' -a '(__fish_print_docker_images)' -d "Image" +# secret +complete -c docker -f -n '__fish_docker_no_subcommand' -a secret -d 'Manage Docker secrets' +complete -c docker -f -n '__fish_seen_subcommand_from secret' -a create -d 'Create a secret from a file or STDIN as content' +complete -c docker -f -n '__fish_seen_subcommand_from secret' -a inspect -d 'Display detailed information on one or more secrets' +complete -c docker -f -n '__fish_seen_subcommand_from secret' -a ls -d 'List secrets' +complete -c docker -f -n '__fish_seen_subcommand_from secret' -a rm -d 'Remove one or more secrets' + # search complete -c docker -f -n '__fish_docker_no_subcommand' -a search -d 'Search for an image on the registry (defaults to the Docker Hub)' complete -c docker -A -f -n '__fish_seen_subcommand_from search' -l automated -d 'Only show automated builds' From 2989f73a11baf779009bb05e8f9a9c361b9021ab Mon Sep 17 00:00:00 2001 From: Artur Juraszek Date: Sun, 24 Jun 2018 19:14:43 +0200 Subject: [PATCH 06/14] Add `system` subcommand support to fish completions Signed-off-by: Artur Juraszek --- contrib/completion/fish/docker.fish | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/contrib/completion/fish/docker.fish b/contrib/completion/fish/docker.fish index 465c6d14d8d6..ab5df616cf1a 100644 --- a/contrib/completion/fish/docker.fish +++ b/contrib/completion/fish/docker.fish @@ -16,7 +16,7 @@ function __fish_docker_no_subcommand --description 'Test if docker has yet to be given the subcommand' for i in (commandline -opc) - if contains -- $i attach build commit config cp create diff events exec export history images import info inspect kill load login logout logs network node pause port ps pull push rename restart rm rmi run save secret search start stats stop tag top trust unpause version volume wait + if contains -- $i attach build commit config cp create diff events exec export history images import info inspect kill load login logout logs network node pause port ps pull push rename restart rm rmi run save secret search start stats stop system tag top trust unpause version volume wait return 1 end end @@ -561,6 +561,13 @@ complete -c docker -A -f -n '__fish_seen_subcommand_from stop' -l help -d 'Print complete -c docker -A -f -n '__fish_seen_subcommand_from stop' -s t -l time -d 'Number of seconds to wait for the container to stop before killing it. Default is 10 seconds.' complete -c docker -A -f -n '__fish_seen_subcommand_from stop' -a '(__fish_print_docker_containers running)' -d "Container" +# system +complete -c docker -f -n '__fish_docker_no_subcommand' -a system -d 'Manage Docker' +complete -c docker -f -n '__fish_seen_subcommand_from system' -a df -d 'Show docker disk usage' +complete -c docker -f -n '__fish_seen_subcommand_from system' -a events -d 'Get real time events from the server' +complete -c docker -f -n '__fish_seen_subcommand_from system' -a info -d 'Display system-wide information' +complete -c docker -f -n '__fish_seen_subcommand_from system' -a prune -d 'Remove unused data' + # tag complete -c docker -f -n '__fish_docker_no_subcommand' -a tag -d 'Tag an image into a repository' complete -c docker -A -f -n '__fish_seen_subcommand_from tag' -s f -l force -d 'Force' From af3d3290f932a32d9db4063fc10a78b4afb8e253 Mon Sep 17 00:00:00 2001 From: Artur Juraszek Date: Sun, 24 Jun 2018 19:46:07 +0200 Subject: [PATCH 07/14] Add `image` subcommand support to fish completions Signed-off-by: Artur Juraszek --- contrib/completion/fish/docker.fish | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/contrib/completion/fish/docker.fish b/contrib/completion/fish/docker.fish index ab5df616cf1a..2970864a06d0 100644 --- a/contrib/completion/fish/docker.fish +++ b/contrib/completion/fish/docker.fish @@ -16,7 +16,7 @@ function __fish_docker_no_subcommand --description 'Test if docker has yet to be given the subcommand' for i in (commandline -opc) - if contains -- $i attach build commit config cp create diff events exec export history images import info inspect kill load login logout logs network node pause port ps pull push rename restart rm rmi run save secret search start stats stop system tag top trust unpause version volume wait + if contains -- $i attach build commit config cp create diff events exec export history image images import info inspect kill load login logout logs network node pause port ps pull push rename restart rm rmi run save secret search start stats stop system tag top trust unpause version volume wait return 1 end end @@ -325,6 +325,21 @@ complete -c docker -A -f -n '__fish_seen_subcommand_from history' -l no-trunc -d complete -c docker -A -f -n '__fish_seen_subcommand_from history' -s q -l quiet -d 'Only show image IDs' complete -c docker -A -f -n '__fish_seen_subcommand_from history' -a '(__fish_print_docker_images)' -d "Image" +# image +complete -c docker -f -n '__fish_docker_no_subcommand' -a image -d 'Manage images' +complete -c docker -f -n '__fish_seen_subcommand_from image' -a build -d 'Build an image from a Dockerfile' +complete -c docker -f -n '__fish_seen_subcommand_from image' -a history -d 'Show the history of an image' +complete -c docker -f -n '__fish_seen_subcommand_from image' -a import -d 'Import the contents from a tarball to create a filesystem image' +complete -c docker -f -n '__fish_seen_subcommand_from image' -a inspect -d 'Display detailed information on one or more images' +complete -c docker -f -n '__fish_seen_subcommand_from image' -a load -d 'Load an image from a tar archive or STDIN' +complete -c docker -f -n '__fish_seen_subcommand_from image' -a ls -d 'List images' +complete -c docker -f -n '__fish_seen_subcommand_from image' -a prune -d 'Remove unused images' +complete -c docker -f -n '__fish_seen_subcommand_from image' -a pull -d 'Pull an image or a repository from a registry' +complete -c docker -f -n '__fish_seen_subcommand_from image' -a push -d 'Push an image or a repository to a registry' +complete -c docker -f -n '__fish_seen_subcommand_from image' -a rm -d 'Remove one or more images' +complete -c docker -f -n '__fish_seen_subcommand_from image' -a save -d 'Save one or more images to a tar archive (streamed to STDOUT by default)' +complete -c docker -f -n '__fish_seen_subcommand_from image' -a tag -d 'Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE' + # images complete -c docker -f -n '__fish_docker_no_subcommand' -a images -d 'List images' complete -c docker -A -f -n '__fish_seen_subcommand_from images' -s a -l all -d 'Show all images (default hides intermediate images)' From e369b34275c32714e8156bae1513b220fff35086 Mon Sep 17 00:00:00 2001 From: Artur Juraszek Date: Sun, 24 Jun 2018 19:50:38 +0200 Subject: [PATCH 08/14] Add `container` subcommand support for fish completions Signed-off-by: Artur Juraszek --- contrib/completion/fish/docker.fish | 31 ++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/contrib/completion/fish/docker.fish b/contrib/completion/fish/docker.fish index 2970864a06d0..2557fb313354 100644 --- a/contrib/completion/fish/docker.fish +++ b/contrib/completion/fish/docker.fish @@ -16,7 +16,7 @@ function __fish_docker_no_subcommand --description 'Test if docker has yet to be given the subcommand' for i in (commandline -opc) - if contains -- $i attach build commit config cp create diff events exec export history image images import info inspect kill load login logout logs network node pause port ps pull push rename restart rm rmi run save secret search start stats stop system tag top trust unpause version volume wait + if contains -- $i attach build commit config container cp create diff events exec export history image images import info inspect kill load login logout logs network node pause port ps pull push rename restart rm rmi run save secret search start stats stop system tag top trust unpause version volume wait return 1 end end @@ -180,6 +180,35 @@ complete -c docker -f -n '__fish_seen_subcommand_from config' -a inspect -d 'Dis complete -c docker -f -n '__fish_seen_subcommand_from config' -a ls -d 'List configs' complete -c docker -f -n '__fish_seen_subcommand_from config' -a rm -d 'Remove one or more configs' +# container +complete -c docker -f -n '__fish_docker_no_subcommand' -a container -d 'Manage containers' +complete -c docker -f -n '__fish_seen_subcommand_from container' -a attach -d 'Attach local standard input, output, and error streams to a running container' +complete -c docker -f -n '__fish_seen_subcommand_from container' -a commit -d 'Create a new image from a container\'s changes' +complete -c docker -f -n '__fish_seen_subcommand_from container' -a cp -d 'Copy files/folders between a container and the local filesystem' +complete -c docker -f -n '__fish_seen_subcommand_from container' -a create -d 'Create a new container' +complete -c docker -f -n '__fish_seen_subcommand_from container' -a diff -d 'Inspect changes to files or directories on a container\'s filesystem' +complete -c docker -f -n '__fish_seen_subcommand_from container' -a exec -d 'Run a command in a running container' +complete -c docker -f -n '__fish_seen_subcommand_from container' -a export -d 'Export a container\'s filesystem as a tar archive' +complete -c docker -f -n '__fish_seen_subcommand_from container' -a inspect -d 'Display detailed information on one or more containers' +complete -c docker -f -n '__fish_seen_subcommand_from container' -a kill -d 'Kill one or more running containers' +complete -c docker -f -n '__fish_seen_subcommand_from container' -a logs -d 'Fetch the logs of a container' +complete -c docker -f -n '__fish_seen_subcommand_from container' -a ls -d 'List containers' +complete -c docker -f -n '__fish_seen_subcommand_from container' -a pause -d 'Pause all processes within one or more containers' +complete -c docker -f -n '__fish_seen_subcommand_from container' -a port -d 'List port mappings or a specific mapping for the container' +complete -c docker -f -n '__fish_seen_subcommand_from container' -a prune -d 'Remove all stopped containers' +complete -c docker -f -n '__fish_seen_subcommand_from container' -a rename -d 'Rename a container' +complete -c docker -f -n '__fish_seen_subcommand_from container' -a restart -d 'Restart one or more containers' +complete -c docker -f -n '__fish_seen_subcommand_from container' -a rm -d 'Remove one or more containers' +complete -c docker -f -n '__fish_seen_subcommand_from container' -a run -d 'Run a command in a new container' +complete -c docker -f -n '__fish_seen_subcommand_from container' -a start -d 'Start one or more stopped containers' +complete -c docker -f -n '__fish_seen_subcommand_from container' -a stats -d 'Display a live stream of container(s) resource usage statistics' +complete -c docker -f -n '__fish_seen_subcommand_from container' -a stop -d 'Stop one or more running containers' +complete -c docker -f -n '__fish_seen_subcommand_from container' -a top -d ' Display the running processes of a container' +complete -c docker -f -n '__fish_seen_subcommand_from container' -a unpause -d 'Unpause all processes within one or more containers' +complete -c docker -f -n '__fish_seen_subcommand_from container' -a update -d 'Update configuration of one or more containers' +complete -c docker -f -n '__fish_seen_subcommand_from container' -a wait -d 'Block until one or more containers stop, then print their exit codes' + + # cp complete -c docker -f -n '__fish_docker_no_subcommand' -a cp -d "Copy files/folders between a container and the local filesystem" complete -c docker -A -f -n '__fish_seen_subcommand_from cp' -s a -l archive -d 'Archive mode (copy all uid/gid information)' From 1fc8099a8e703ed8bfc7b7b442e17b9112acc6b0 Mon Sep 17 00:00:00 2001 From: Artur Juraszek Date: Sun, 24 Jun 2018 19:53:47 +0200 Subject: [PATCH 09/14] Add `plugin` subcommand support for fish completions Signed-off-by: Artur Juraszek --- contrib/completion/fish/docker.fish | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/contrib/completion/fish/docker.fish b/contrib/completion/fish/docker.fish index 2557fb313354..c99c05553781 100644 --- a/contrib/completion/fish/docker.fish +++ b/contrib/completion/fish/docker.fish @@ -16,7 +16,7 @@ function __fish_docker_no_subcommand --description 'Test if docker has yet to be given the subcommand' for i in (commandline -opc) - if contains -- $i attach build commit config container cp create diff events exec export history image images import info inspect kill load login logout logs network node pause port ps pull push rename restart rm rmi run save secret search start stats stop system tag top trust unpause version volume wait + if contains -- $i attach build commit config container cp create diff events exec export history image images import info inspect kill load login logout logs network node pause plugin port ps pull push rename restart rm rmi run save secret search start stats stop system tag top trust unpause version volume wait return 1 end end @@ -456,6 +456,19 @@ complete -c docker -f -n '__fish_seen_subcommand_from node' -a ps -d 'List tasks complete -c docker -f -n '__fish_seen_subcommand_from node' -a rm -d 'Remove one or more nodes from the swarm' complete -c docker -f -n '__fish_seen_subcommand_from node' -a update -d 'Update a node' +# plugin +complete -c docker -f -n '__fish_docker_no_subcommand' -a plugin -d 'Manage plugins' +complete -c docker -f -n '__fish_seen_subcommand_from plugin' -a create -d 'Create a plugin from a rootfs and configuration. Plugin data directory must contain config.json and rootfs directory.' +complete -c docker -f -n '__fish_seen_subcommand_from plugin' -a disable -d 'Disable a plugin' +complete -c docker -f -n '__fish_seen_subcommand_from plugin' -a enable -d 'Enable a plugin' +complete -c docker -f -n '__fish_seen_subcommand_from plugin' -a inspect -d 'Display detailed information on one or more plugins' +complete -c docker -f -n '__fish_seen_subcommand_from plugin' -a install -d 'Install a plugin' +complete -c docker -f -n '__fish_seen_subcommand_from plugin' -a ls -d 'List plugins' +complete -c docker -f -n '__fish_seen_subcommand_from plugin' -a push -d 'Push a plugin to a registry' +complete -c docker -f -n '__fish_seen_subcommand_from plugin' -a rm -d 'Remove one or more plugins' +complete -c docker -f -n '__fish_seen_subcommand_from plugin' -a set -d 'Change settings for a plugin' +complete -c docker -f -n '__fish_seen_subcommand_from plugin' -a upgrade -d 'Upgrade an existing plugin' + # port complete -c docker -f -n '__fish_docker_no_subcommand' -a port -d 'Lookup the public-facing port that is NAT-ed to PRIVATE_PORT' complete -c docker -A -f -n '__fish_seen_subcommand_from port' -l help -d 'Print usage' From 886911d8df00b826ad32d1ca195fb64467c02b3e Mon Sep 17 00:00:00 2001 From: Artur Juraszek Date: Sun, 24 Jun 2018 19:57:03 +0200 Subject: [PATCH 10/14] Add `service` subcommand support for fish completions Signed-off-by: Artur Juraszek --- contrib/completion/fish/docker.fish | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/contrib/completion/fish/docker.fish b/contrib/completion/fish/docker.fish index c99c05553781..ecf8ffa5332d 100644 --- a/contrib/completion/fish/docker.fish +++ b/contrib/completion/fish/docker.fish @@ -16,7 +16,7 @@ function __fish_docker_no_subcommand --description 'Test if docker has yet to be given the subcommand' for i in (commandline -opc) - if contains -- $i attach build commit config container cp create diff events exec export history image images import info inspect kill load login logout logs network node pause plugin port ps pull push rename restart rm rmi run save secret search start stats stop system tag top trust unpause version volume wait + if contains -- $i attach build commit config container cp create diff events exec export history image images import info inspect kill load login logout logs network node pause plugin port ps pull push rename restart rm rmi run save secret search service start stats stop system tag top trust unpause version volume wait return 1 end end @@ -599,6 +599,18 @@ complete -c docker -A -f -n '__fish_seen_subcommand_from search' -l help -d 'Pri complete -c docker -A -f -n '__fish_seen_subcommand_from search' -l no-trunc -d "Don't truncate output" complete -c docker -A -f -n '__fish_seen_subcommand_from search' -s s -l stars -d 'Only displays with at least x stars' +# service +complete -c docker -f -n '__fish_docker_no_subcommand' -a service -d 'Manage services' +complete -c docker -f -n '__fish_seen_subcommand_from service' -a create -d 'Create a new service' +complete -c docker -f -n '__fish_seen_subcommand_from service' -a inspect -d 'Display detailed information on one or more services' +complete -c docker -f -n '__fish_seen_subcommand_from service' -a logs -d 'Fetch the logs of a service or task' +complete -c docker -f -n '__fish_seen_subcommand_from service' -a ls -d 'List services' +complete -c docker -f -n '__fish_seen_subcommand_from service' -a ps -d 'List the tasks of one or more services' +complete -c docker -f -n '__fish_seen_subcommand_from service' -a rm -d 'Remove one or more services' +complete -c docker -f -n '__fish_seen_subcommand_from service' -a rollback -d 'Revert changes to a service\'s configuration' +complete -c docker -f -n '__fish_seen_subcommand_from service' -a scale -d ' Scale one or multiple replicated services' +complete -c docker -f -n '__fish_seen_subcommand_from service' -a update -d 'Update a service' + # start complete -c docker -f -n '__fish_docker_no_subcommand' -a start -d 'Start a container' complete -c docker -A -f -n '__fish_seen_subcommand_from start' -s a -l attach -d "Attach container's STDOUT and STDERR and forward all signals to the process" From 4d25ef7c84db4819edc0b2fb4d5d73c7f4d09871 Mon Sep 17 00:00:00 2001 From: Artur Juraszek Date: Sun, 24 Jun 2018 19:59:14 +0200 Subject: [PATCH 11/14] Add `swarm` subcommand support for fish completions Signed-off-by: Artur Juraszek --- contrib/completion/fish/docker.fish | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/contrib/completion/fish/docker.fish b/contrib/completion/fish/docker.fish index ecf8ffa5332d..5bba9131cdf3 100644 --- a/contrib/completion/fish/docker.fish +++ b/contrib/completion/fish/docker.fish @@ -16,7 +16,7 @@ function __fish_docker_no_subcommand --description 'Test if docker has yet to be given the subcommand' for i in (commandline -opc) - if contains -- $i attach build commit config container cp create diff events exec export history image images import info inspect kill load login logout logs network node pause plugin port ps pull push rename restart rm rmi run save secret search service start stats stop system tag top trust unpause version volume wait + if contains -- $i attach build commit config container cp create diff events exec export history image images import info inspect kill load login logout logs network node pause plugin port ps pull push rename restart rm rmi run save secret search service start stats stop swarm system tag top trust unpause version volume wait return 1 end end @@ -630,6 +630,17 @@ complete -c docker -A -f -n '__fish_seen_subcommand_from stop' -l help -d 'Print complete -c docker -A -f -n '__fish_seen_subcommand_from stop' -s t -l time -d 'Number of seconds to wait for the container to stop before killing it. Default is 10 seconds.' complete -c docker -A -f -n '__fish_seen_subcommand_from stop' -a '(__fish_print_docker_containers running)' -d "Container" +# swarm +complete -c docker -f -n '__fish_docker_no_subcommand' -a swarm -d 'Manage Swarm' +complete -c docker -f -n '__fish_seen_subcommand_from swarm' -a ca -d 'Display and rotate the root CA' +complete -c docker -f -n '__fish_seen_subcommand_from swarm' -a init -d 'Initialize a swarm' +complete -c docker -f -n '__fish_seen_subcommand_from swarm' -a join -d 'Join a swarm as a node and/or manager' +complete -c docker -f -n '__fish_seen_subcommand_from swarm' -a join-token -d 'Manage join tokens' +complete -c docker -f -n '__fish_seen_subcommand_from swarm' -a leave -d 'Leave the swarm' +complete -c docker -f -n '__fish_seen_subcommand_from swarm' -a unlock -d 'Unlock swarm' +complete -c docker -f -n '__fish_seen_subcommand_from swarm' -a unlock-key -d 'Manage the unlock key' +complete -c docker -f -n '__fish_seen_subcommand_from swarm' -a update -d 'Update the swarm' + # system complete -c docker -f -n '__fish_docker_no_subcommand' -a system -d 'Manage Docker' complete -c docker -f -n '__fish_seen_subcommand_from system' -a df -d 'Show docker disk usage' From c88ace54a63eda897553a52a3a844509653a12a3 Mon Sep 17 00:00:00 2001 From: Artur Juraszek Date: Thu, 5 Jul 2018 19:23:06 +0200 Subject: [PATCH 12/14] Drop -A flag in fish completions It used to stand for --authoritative, but got deprecated and no longer does anything. Signed-off-by: Artur Juraszek --- contrib/completion/fish/docker.fish | 640 ++++++++++++++-------------- 1 file changed, 320 insertions(+), 320 deletions(-) diff --git a/contrib/completion/fish/docker.fish b/contrib/completion/fish/docker.fish index 5bba9131cdf3..c831d43b3183 100644 --- a/contrib/completion/fish/docker.fish +++ b/contrib/completion/fish/docker.fish @@ -126,52 +126,52 @@ complete -c docker -f -n '__fish_docker_no_subcommand' -s v -l version -d 'Print # subcommands # attach complete -c docker -f -n '__fish_docker_no_subcommand' -a attach -d 'Attach local standard input, output, and error streams to a running container' -complete -c docker -A -f -n '__fish_seen_subcommand_from attach' -l detach-keys -d 'Override the key sequence for detaching a container' -complete -c docker -A -f -n '__fish_seen_subcommand_from attach' -l help -d 'Print usage' -complete -c docker -A -f -n '__fish_seen_subcommand_from attach' -l no-stdin -d 'Do not attach STDIN' -complete -c docker -A -f -n '__fish_seen_subcommand_from attach' -l sig-proxy -d 'Proxy all received signals to the process' -complete -c docker -A -f -n '__fish_seen_subcommand_from attach' -a '(__fish_print_docker_containers running)' -d "Container" +complete -c docker -f -n '__fish_seen_subcommand_from attach' -l detach-keys -d 'Override the key sequence for detaching a container' +complete -c docker -f -n '__fish_seen_subcommand_from attach' -l help -d 'Print usage' +complete -c docker -f -n '__fish_seen_subcommand_from attach' -l no-stdin -d 'Do not attach STDIN' +complete -c docker -f -n '__fish_seen_subcommand_from attach' -l sig-proxy -d 'Proxy all received signals to the process' +complete -c docker -f -n '__fish_seen_subcommand_from attach' -a '(__fish_print_docker_containers running)' -d "Container" # build complete -c docker -f -n '__fish_docker_no_subcommand' -a build -d 'Build an image from a Dockerfile' -complete -c docker -A -f -n '__fish_seen_subcommand_from build' -l add-host -d 'Add a custom host-to-IP mapping (host:ip)' -complete -c docker -A -f -n '__fish_seen_subcommand_from build' -l build-arg -d 'Set build-time variables' -complete -c docker -A -f -n '__fish_seen_subcommand_from build' -l cache-from -d 'Images to consider as cache sources' -complete -c docker -A -f -n '__fish_seen_subcommand_from build' -l cgroup-parent -d 'Optional parent cgroup for the container' -complete -c docker -A -f -n '__fish_seen_subcommand_from build' -l compress -d 'Compress the build context using gzip' -complete -c docker -A -f -n '__fish_seen_subcommand_from build' -l cpu-period -d 'Limit the CPU CFS (Completely Fair Scheduler) period' -complete -c docker -A -f -n '__fish_seen_subcommand_from build' -l cpu-quota -d 'Limit the CPU CFS (Completely Fair Scheduler) quota' -complete -c docker -A -f -n '__fish_seen_subcommand_from build' -s c -l cpu-shares -d 'CPU shares (relative weight)' -complete -c docker -A -f -n '__fish_seen_subcommand_from build' -l cpuset-cpus -d 'CPUs in which to allow execution (0-3, 0,1)' -complete -c docker -A -f -n '__fish_seen_subcommand_from build' -l cpuset-mems -d 'MEMs in which to allow execution (0-3, 0,1)' -complete -c docker -A -f -n '__fish_seen_subcommand_from build' -l disable-content-trust -d 'Skip image verification' -complete -c docker -A -f -n '__fish_seen_subcommand_from build' -s f -l file -d "Name of the Dockerfile (Default is ‘PATH/Dockerfile’)" -complete -c docker -A -f -n '__fish_seen_subcommand_from build' -l force-rm -d 'Always remove intermediate containers' -complete -c docker -A -f -n '__fish_seen_subcommand_from build' -l help -d 'Print usage' -complete -c docker -A -f -n '__fish_seen_subcommand_from build' -l iddfile -d 'Write the image ID to the file' -complete -c docker -A -f -n '__fish_seen_subcommand_from build' -l isolation -d 'Container isolation technology' -complete -c docker -A -f -n '__fish_seen_subcommand_from build' -l label -d 'Set metadata for an image' -complete -c docker -A -f -n '__fish_seen_subcommand_from build' -s m -l memory -d 'Memory limit' -complete -c docker -A -f -n '__fish_seen_subcommand_from build' -l memory-swap -d 'Swap limit equal to memory plus swap: ‘-1’ to enable unlimited swap' -complete -c docker -A -f -n '__fish_seen_subcommand_from build' -l network -d 'Set the networking mode for the RUN instructions during build' -complete -c docker -A -f -n '__fish_seen_subcommand_from build' -l no-cache -d 'Do not use cache when building the image' -complete -c docker -A -f -n '__fish_seen_subcommand_from build' -l pull -d 'Always attempt to pull a newer version of the image' -complete -c docker -A -f -n '__fish_seen_subcommand_from build' -s q -l quiet -d 'Suppress the build output and print image ID on success' -complete -c docker -A -f -n '__fish_seen_subcommand_from build' -l rm -d 'Remove intermediate containers after a successful build' -complete -c docker -A -f -n '__fish_seen_subcommand_from build' -l security-opt -d 'Security options' -complete -c docker -A -f -n '__fish_seen_subcommand_from build' -l shm-size -d 'Size of /dev/shm' -complete -c docker -A -f -n '__fish_seen_subcommand_from build' -s t -l tag -d 'Name and optionally a tag in the ‘name:tag’ format' -complete -c docker -A -f -n '__fish_seen_subcommand_from build' -l target -d 'Set the target build stage to build' -complete -c docker -A -f -n '__fish_seen_subcommand_from build' -l ulimit -d 'Ulimit options' +complete -c docker -f -n '__fish_seen_subcommand_from build' -l add-host -d 'Add a custom host-to-IP mapping (host:ip)' +complete -c docker -f -n '__fish_seen_subcommand_from build' -l build-arg -d 'Set build-time variables' +complete -c docker -f -n '__fish_seen_subcommand_from build' -l cache-from -d 'Images to consider as cache sources' +complete -c docker -f -n '__fish_seen_subcommand_from build' -l cgroup-parent -d 'Optional parent cgroup for the container' +complete -c docker -f -n '__fish_seen_subcommand_from build' -l compress -d 'Compress the build context using gzip' +complete -c docker -f -n '__fish_seen_subcommand_from build' -l cpu-period -d 'Limit the CPU CFS (Completely Fair Scheduler) period' +complete -c docker -f -n '__fish_seen_subcommand_from build' -l cpu-quota -d 'Limit the CPU CFS (Completely Fair Scheduler) quota' +complete -c docker -f -n '__fish_seen_subcommand_from build' -s c -l cpu-shares -d 'CPU shares (relative weight)' +complete -c docker -f -n '__fish_seen_subcommand_from build' -l cpuset-cpus -d 'CPUs in which to allow execution (0-3, 0,1)' +complete -c docker -f -n '__fish_seen_subcommand_from build' -l cpuset-mems -d 'MEMs in which to allow execution (0-3, 0,1)' +complete -c docker -f -n '__fish_seen_subcommand_from build' -l disable-content-trust -d 'Skip image verification' +complete -c docker -f -n '__fish_seen_subcommand_from build' -s f -l file -d "Name of the Dockerfile (Default is ‘PATH/Dockerfile’)" +complete -c docker -f -n '__fish_seen_subcommand_from build' -l force-rm -d 'Always remove intermediate containers' +complete -c docker -f -n '__fish_seen_subcommand_from build' -l help -d 'Print usage' +complete -c docker -f -n '__fish_seen_subcommand_from build' -l iddfile -d 'Write the image ID to the file' +complete -c docker -f -n '__fish_seen_subcommand_from build' -l isolation -d 'Container isolation technology' +complete -c docker -f -n '__fish_seen_subcommand_from build' -l label -d 'Set metadata for an image' +complete -c docker -f -n '__fish_seen_subcommand_from build' -s m -l memory -d 'Memory limit' +complete -c docker -f -n '__fish_seen_subcommand_from build' -l memory-swap -d 'Swap limit equal to memory plus swap: ‘-1’ to enable unlimited swap' +complete -c docker -f -n '__fish_seen_subcommand_from build' -l network -d 'Set the networking mode for the RUN instructions during build' +complete -c docker -f -n '__fish_seen_subcommand_from build' -l no-cache -d 'Do not use cache when building the image' +complete -c docker -f -n '__fish_seen_subcommand_from build' -l pull -d 'Always attempt to pull a newer version of the image' +complete -c docker -f -n '__fish_seen_subcommand_from build' -s q -l quiet -d 'Suppress the build output and print image ID on success' +complete -c docker -f -n '__fish_seen_subcommand_from build' -l rm -d 'Remove intermediate containers after a successful build' +complete -c docker -f -n '__fish_seen_subcommand_from build' -l security-opt -d 'Security options' +complete -c docker -f -n '__fish_seen_subcommand_from build' -l shm-size -d 'Size of /dev/shm' +complete -c docker -f -n '__fish_seen_subcommand_from build' -s t -l tag -d 'Name and optionally a tag in the ‘name:tag’ format' +complete -c docker -f -n '__fish_seen_subcommand_from build' -l target -d 'Set the target build stage to build' +complete -c docker -f -n '__fish_seen_subcommand_from build' -l ulimit -d 'Ulimit options' # commit complete -c docker -f -n '__fish_docker_no_subcommand' -a commit -d "Create a new image from a container's changes" -complete -c docker -A -f -n '__fish_seen_subcommand_from commit' -s a -l author -d 'Author (e.g., "John Hannibal Smith ")' -complete -c docker -A -f -n '__fish_seen_subcommand_from commit' -s c -l change -d 'Apply Dockerfile instruction to the created image' -complete -c docker -A -f -n '__fish_seen_subcommand_from commit' -l help -d 'Print usage' -complete -c docker -A -f -n '__fish_seen_subcommand_from commit' -s m -l message -d 'Commit message' -complete -c docker -A -f -n '__fish_seen_subcommand_from commit' -s p -l pause -d 'Pause container during commit' -complete -c docker -A -f -n '__fish_seen_subcommand_from commit' -a '(__fish_print_docker_containers all)' -d "Container" +complete -c docker -f -n '__fish_seen_subcommand_from commit' -s a -l author -d 'Author (e.g., "John Hannibal Smith ")' +complete -c docker -f -n '__fish_seen_subcommand_from commit' -s c -l change -d 'Apply Dockerfile instruction to the created image' +complete -c docker -f -n '__fish_seen_subcommand_from commit' -l help -d 'Print usage' +complete -c docker -f -n '__fish_seen_subcommand_from commit' -s m -l message -d 'Commit message' +complete -c docker -f -n '__fish_seen_subcommand_from commit' -s p -l pause -d 'Pause container during commit' +complete -c docker -f -n '__fish_seen_subcommand_from commit' -a '(__fish_print_docker_containers all)' -d "Container" # config complete -c docker -f -n '__fish_docker_no_subcommand' -a config -d "Manage Docker configs" @@ -211,148 +211,148 @@ complete -c docker -f -n '__fish_seen_subcommand_from container' -a wait -d 'Blo # cp complete -c docker -f -n '__fish_docker_no_subcommand' -a cp -d "Copy files/folders between a container and the local filesystem" -complete -c docker -A -f -n '__fish_seen_subcommand_from cp' -s a -l archive -d 'Archive mode (copy all uid/gid information)' -complete -c docker -A -f -n '__fish_seen_subcommand_from cp' -s L -l follow-link -d 'Always follow symbol link in SRC_PATH' -complete -c docker -A -f -n '__fish_seen_subcommand_from cp' -l help -d 'Print usage' +complete -c docker -f -n '__fish_seen_subcommand_from cp' -s a -l archive -d 'Archive mode (copy all uid/gid information)' +complete -c docker -f -n '__fish_seen_subcommand_from cp' -s L -l follow-link -d 'Always follow symbol link in SRC_PATH' +complete -c docker -f -n '__fish_seen_subcommand_from cp' -l help -d 'Print usage' # create complete -c docker -f -n '__fish_docker_no_subcommand' -a create -d 'Create a new container' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l add-host -d 'Add a custom host-to-IP mapping (host:ip)' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -s a -l attach -d 'Attach to STDIN, STDOUT or STDERR.' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l blkio-weight -d 'Block IO (relative weight), between 10 and 1000, or 0 to disable (default 0)' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l blkio-weight-device -d 'Block IO weight (relative device weight)' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l cap-add -d 'Add Linux capabilities' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l cap-drop -d 'Drop Linux capabilities' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l cgroupns -d 'Cgroup namespace mode to use' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l cgroup-parent -d 'Optional parent cgroup for the container' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l cidfile -d 'Write the container ID to the file' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l cpu-count -d 'CPU count (Windows only)' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l cpu-percent -d 'CPU percent (Windows only)' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l cpu-period -d 'Limit CPU CFS (Completely Fair Scheduler) period' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l cpu-quota -d 'Limit CPU CFS (Completely Fair Scheduler) quota' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l cpu-rt-period -d 'Limit CPU real-time period in microseconds' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l cpu-rt-runtime -d 'Limit CPU real-time runtime in microseconds' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l cpu-shares -d 'CPU shares (relative weight)' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l cpus -d 'Number of CPUs' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l cpuset-cpus -d 'CPUs in which to allow execution (0-3, 0,1)' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l cpuset-mems -d 'MEMs in which to allow execution (0-3, 0,1)' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l device -d 'Add a host device to the container (e.g. --device=/dev/sdc:/dev/xvdc:rwm)' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l device-cgroup-rule -d 'Add a rule to the cgroup allowed devices list' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l device-read-bps -d 'Limit read rate (bytes per second) from a device' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l device-read-iops -d 'Limit read rate (IO per second) from a device' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l device-write-bps -d 'Limit write rate (bytes per second) to a device' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l device-write-iops -d 'Limit write rate (IO per second) to a device' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l disable-content-trust -d 'Skip image verification' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l dns -d 'Set custom DNS servers' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l dns-opt -d 'Set DNS options' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l dns-option -d 'Set DNS options' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l dns-search -d 'Set custom DNS search domains' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -s e -l env -d 'Set environment variables' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l entrypoint -d 'Overwrite the default ENTRYPOINT of the image' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l env-file -d 'Read in a line delimited file of environment variables' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l expose -d 'Expose a port or a range of ports' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l group-add -d 'Add additional groups to join' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l health-cmd -d 'Command to run to check health' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l health-interval -d 'Time between running the check (ms|s|m|h) (default 0s)' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l health-retries -d 'Consecutive failures needed to report unhealthy' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l health-start-period -d 'Start period for the container to initialize before starting health-retries countdown (ms|s|m|h) (default 0s)' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l health-timeout -d 'Maximum time to allow one check to run (ms|s|m|h) (default 0s)' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l help -d 'Print usage' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -s h -l hostname -d 'Container host name' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l init -d 'Run an init inside the container that forwards signals and reaps processes' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -s i -l interactive -d 'Keep STDIN open even if not attached' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l io-maxbandwidth -d 'Maximum IO bandwidth limit for the system drive (Windows only)' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l io-maxiops -d 'Maximum IOps limit for the system drive (Windows only)' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l ip -d 'IPv4 address (e.g., 172.30.100.104)' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l ip6 -d 'IPv6 address (e.g., 2001:db8::33)' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l ipc -d 'IPC mode to use' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l isolation -d 'Container isolation technology' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l kernel-memory -d 'Kernel memory limit' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -s l -l label -d 'Set meta data on a container' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l label-file -d 'Read in a line delimited file of labels' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l link -d 'Add link to another container' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l link-local-ip -d 'Container IPv4/IPv6 link-local addresses' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l log-driver -d 'Logging driver for the container' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l log-opt -d 'Log driver options' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l mac-address -d 'Container MAC address (e.g., 92:d0:c6:0a:29:33)' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -s m -l memory -d 'Memory limit' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l memory-reservation -d 'Memory soft limit' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l memory-swap -d 'Swap limit equal to memory plus swap: ‘-1’ to enable unlimited swap' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l memory-swappiness -d 'Tune container memory swappiness (0 to 100)' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l mount -d 'Attach a filesystem mount to the container' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l name -d 'Assign a name to the container' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -s net -l network -d 'Connect a container to a network' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -s net-alias -l network-alias -d 'Add network-scoped alias for the container' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l no-healthcheck -d 'Disable any container-specified HEALTHCHECK' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l oom-kill-disable -d 'Disable OOM Killer' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l oom-score-adj -d 'Tune host’s OOM preferences (-1000 to 1000)' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l pid -d 'PID namespace to use' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l pids-limit -d 'Tune container pids limit (set -1 for unlimited )' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l privileged -d 'Give extended privileges to this container' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -s p -l publish -d "Publish a container’s port(s) to the host" -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -s P -l publish-all -d 'Publish all exposed ports to random ports' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l read-only -d "Mount the container's root filesystem as read only" -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l restart -d 'Restart policy to apply when a container exits' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l rm -d 'Automatically remove the container when it exits' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l runtime -d 'Runtime to use for this container' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l security-opt -d 'Security Options' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l shm-size -d 'Size of /dev/shm' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l stop-signal -d 'Signal to stop a container' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l stop-timeout -d 'Timeout (in seconds) to stop a container' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l storage-opt -d 'Storage driver options for the container' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l sysctl -d 'Sysctl options' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l tmpfs -d 'Mount a tmpfs directory' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -s t -l tty -d 'Allocate a pseudo-TTY' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l ulimit -d 'Ulimit options' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -s u -l user -d ' Username or UID (format: [:])' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l userns -d 'User namespace to use' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l uts -d 'UTS namespace to use' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -s v -l volume -d 'Bind mount a volume' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l volume-driver -d 'Optional volume driver for the container' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l volumes-from -d 'Mount volumes from the specified container(s)' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -s w -l workdir -d 'Working directory inside the container' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -a '(__fish_print_docker_images)' -d "Image" +complete -c docker -f -n '__fish_seen_subcommand_from create' -l add-host -d 'Add a custom host-to-IP mapping (host:ip)' +complete -c docker -f -n '__fish_seen_subcommand_from create' -s a -l attach -d 'Attach to STDIN, STDOUT or STDERR.' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l blkio-weight -d 'Block IO (relative weight), between 10 and 1000, or 0 to disable (default 0)' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l blkio-weight-device -d 'Block IO weight (relative device weight)' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l cap-add -d 'Add Linux capabilities' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l cap-drop -d 'Drop Linux capabilities' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l cgroupns -d 'Cgroup namespace mode to use' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l cgroup-parent -d 'Optional parent cgroup for the container' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l cidfile -d 'Write the container ID to the file' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l cpu-count -d 'CPU count (Windows only)' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l cpu-percent -d 'CPU percent (Windows only)' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l cpu-period -d 'Limit CPU CFS (Completely Fair Scheduler) period' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l cpu-quota -d 'Limit CPU CFS (Completely Fair Scheduler) quota' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l cpu-rt-period -d 'Limit CPU real-time period in microseconds' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l cpu-rt-runtime -d 'Limit CPU real-time runtime in microseconds' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l cpu-shares -d 'CPU shares (relative weight)' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l cpus -d 'Number of CPUs' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l cpuset-cpus -d 'CPUs in which to allow execution (0-3, 0,1)' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l cpuset-mems -d 'MEMs in which to allow execution (0-3, 0,1)' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l device -d 'Add a host device to the container (e.g. --device=/dev/sdc:/dev/xvdc:rwm)' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l device-cgroup-rule -d 'Add a rule to the cgroup allowed devices list' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l device-read-bps -d 'Limit read rate (bytes per second) from a device' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l device-read-iops -d 'Limit read rate (IO per second) from a device' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l device-write-bps -d 'Limit write rate (bytes per second) to a device' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l device-write-iops -d 'Limit write rate (IO per second) to a device' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l disable-content-trust -d 'Skip image verification' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l dns -d 'Set custom DNS servers' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l dns-opt -d 'Set DNS options' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l dns-option -d 'Set DNS options' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l dns-search -d 'Set custom DNS search domains' +complete -c docker -f -n '__fish_seen_subcommand_from create' -s e -l env -d 'Set environment variables' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l entrypoint -d 'Overwrite the default ENTRYPOINT of the image' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l env-file -d 'Read in a line delimited file of environment variables' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l expose -d 'Expose a port or a range of ports' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l group-add -d 'Add additional groups to join' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l health-cmd -d 'Command to run to check health' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l health-interval -d 'Time between running the check (ms|s|m|h) (default 0s)' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l health-retries -d 'Consecutive failures needed to report unhealthy' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l health-start-period -d 'Start period for the container to initialize before starting health-retries countdown (ms|s|m|h) (default 0s)' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l health-timeout -d 'Maximum time to allow one check to run (ms|s|m|h) (default 0s)' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l help -d 'Print usage' +complete -c docker -f -n '__fish_seen_subcommand_from create' -s h -l hostname -d 'Container host name' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l init -d 'Run an init inside the container that forwards signals and reaps processes' +complete -c docker -f -n '__fish_seen_subcommand_from create' -s i -l interactive -d 'Keep STDIN open even if not attached' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l io-maxbandwidth -d 'Maximum IO bandwidth limit for the system drive (Windows only)' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l io-maxiops -d 'Maximum IOps limit for the system drive (Windows only)' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l ip -d 'IPv4 address (e.g., 172.30.100.104)' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l ip6 -d 'IPv6 address (e.g., 2001:db8::33)' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l ipc -d 'IPC mode to use' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l isolation -d 'Container isolation technology' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l kernel-memory -d 'Kernel memory limit' +complete -c docker -f -n '__fish_seen_subcommand_from create' -s l -l label -d 'Set meta data on a container' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l label-file -d 'Read in a line delimited file of labels' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l link -d 'Add link to another container' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l link-local-ip -d 'Container IPv4/IPv6 link-local addresses' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l log-driver -d 'Logging driver for the container' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l log-opt -d 'Log driver options' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l mac-address -d 'Container MAC address (e.g., 92:d0:c6:0a:29:33)' +complete -c docker -f -n '__fish_seen_subcommand_from create' -s m -l memory -d 'Memory limit' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l memory-reservation -d 'Memory soft limit' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l memory-swap -d 'Swap limit equal to memory plus swap: ‘-1’ to enable unlimited swap' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l memory-swappiness -d 'Tune container memory swappiness (0 to 100)' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l mount -d 'Attach a filesystem mount to the container' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l name -d 'Assign a name to the container' +complete -c docker -f -n '__fish_seen_subcommand_from create' -s net -l network -d 'Connect a container to a network' +complete -c docker -f -n '__fish_seen_subcommand_from create' -s net-alias -l network-alias -d 'Add network-scoped alias for the container' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l no-healthcheck -d 'Disable any container-specified HEALTHCHECK' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l oom-kill-disable -d 'Disable OOM Killer' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l oom-score-adj -d 'Tune host’s OOM preferences (-1000 to 1000)' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l pid -d 'PID namespace to use' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l pids-limit -d 'Tune container pids limit (set -1 for unlimited )' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l privileged -d 'Give extended privileges to this container' +complete -c docker -f -n '__fish_seen_subcommand_from create' -s p -l publish -d "Publish a container’s port(s) to the host" +complete -c docker -f -n '__fish_seen_subcommand_from create' -s P -l publish-all -d 'Publish all exposed ports to random ports' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l read-only -d "Mount the container's root filesystem as read only" +complete -c docker -f -n '__fish_seen_subcommand_from create' -l restart -d 'Restart policy to apply when a container exits' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l rm -d 'Automatically remove the container when it exits' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l runtime -d 'Runtime to use for this container' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l security-opt -d 'Security Options' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l shm-size -d 'Size of /dev/shm' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l stop-signal -d 'Signal to stop a container' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l stop-timeout -d 'Timeout (in seconds) to stop a container' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l storage-opt -d 'Storage driver options for the container' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l sysctl -d 'Sysctl options' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l tmpfs -d 'Mount a tmpfs directory' +complete -c docker -f -n '__fish_seen_subcommand_from create' -s t -l tty -d 'Allocate a pseudo-TTY' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l ulimit -d 'Ulimit options' +complete -c docker -f -n '__fish_seen_subcommand_from create' -s u -l user -d ' Username or UID (format: [:])' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l userns -d 'User namespace to use' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l uts -d 'UTS namespace to use' +complete -c docker -f -n '__fish_seen_subcommand_from create' -s v -l volume -d 'Bind mount a volume' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l volume-driver -d 'Optional volume driver for the container' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l volumes-from -d 'Mount volumes from the specified container(s)' +complete -c docker -f -n '__fish_seen_subcommand_from create' -s w -l workdir -d 'Working directory inside the container' +complete -c docker -f -n '__fish_seen_subcommand_from create' -a '(__fish_print_docker_images)' -d "Image" # diff complete -c docker -f -n '__fish_docker_no_subcommand' -a diff -d "Inspect changes on a container's filesystem" -complete -c docker -A -f -n '__fish_seen_subcommand_from diff' -l help -d 'Print usage' -complete -c docker -A -f -n '__fish_seen_subcommand_from diff' -a '(__fish_print_docker_containers all)' -d "Container" +complete -c docker -f -n '__fish_seen_subcommand_from diff' -l help -d 'Print usage' +complete -c docker -f -n '__fish_seen_subcommand_from diff' -a '(__fish_print_docker_containers all)' -d "Container" # events complete -c docker -f -n '__fish_docker_no_subcommand' -a events -d 'Get real time events from the server' -complete -c docker -A -f -n '__fish_seen_subcommand_from events' -s f -l filter -d "Filter output based on conditions provided" -complete -c docker -A -f -n '__fish_seen_subcommand_from events' -l format -d 'Format the output using the given Go template' -complete -c docker -A -f -n '__fish_seen_subcommand_from events' -l help -d 'Print usage' -complete -c docker -A -f -n '__fish_seen_subcommand_from events' -l since -d 'Show all events created since timestamp' -complete -c docker -A -f -n '__fish_seen_subcommand_from events' -l until -d 'Stream events until this timestamp' +complete -c docker -f -n '__fish_seen_subcommand_from events' -s f -l filter -d "Filter output based on conditions provided" +complete -c docker -f -n '__fish_seen_subcommand_from events' -l format -d 'Format the output using the given Go template' +complete -c docker -f -n '__fish_seen_subcommand_from events' -l help -d 'Print usage' +complete -c docker -f -n '__fish_seen_subcommand_from events' -l since -d 'Show all events created since timestamp' +complete -c docker -f -n '__fish_seen_subcommand_from events' -l until -d 'Stream events until this timestamp' # exec complete -c docker -f -n '__fish_docker_no_subcommand' -a exec -d 'Run a command in a running container' -complete -c docker -A -f -n '__fish_seen_subcommand_from exec' -s d -l detach -d 'Detached mode: run command in the background' -complete -c docker -A -f -n '__fish_seen_subcommand_from exec' -l detach-keys -d 'Override the key sequence for detaching a container' -complete -c docker -A -f -n '__fish_seen_subcommand_from exec' -s e -l env -d 'Set environment variables' -complete -c docker -A -f -n '__fish_seen_subcommand_from exec' -l help -d 'Print usage' -complete -c docker -A -f -n '__fish_seen_subcommand_from exec' -s i -l interactive -d 'Keep STDIN open even if not attached' -complete -c docker -A -f -n '__fish_seen_subcommand_from exec' -l privileged -d 'Give extended privileges to the command' -complete -c docker -A -f -n '__fish_seen_subcommand_from exec' -s t -l tty -d 'Allocate a pseudo-TTY' -complete -c docker -A -f -n '__fish_seen_subcommand_from exec' -s u -l user -d 'Username or UID (format: [:])' -complete -c docker -A -f -n '__fish_seen_subcommand_from exec' -s w -l workdir -d 'Working directory inside the container' -complete -c docker -A -f -n '__fish_seen_subcommand_from exec' -a '(__fish_print_docker_containers running)' -d "Container" +complete -c docker -f -n '__fish_seen_subcommand_from exec' -s d -l detach -d 'Detached mode: run command in the background' +complete -c docker -f -n '__fish_seen_subcommand_from exec' -l detach-keys -d 'Override the key sequence for detaching a container' +complete -c docker -f -n '__fish_seen_subcommand_from exec' -s e -l env -d 'Set environment variables' +complete -c docker -f -n '__fish_seen_subcommand_from exec' -l help -d 'Print usage' +complete -c docker -f -n '__fish_seen_subcommand_from exec' -s i -l interactive -d 'Keep STDIN open even if not attached' +complete -c docker -f -n '__fish_seen_subcommand_from exec' -l privileged -d 'Give extended privileges to the command' +complete -c docker -f -n '__fish_seen_subcommand_from exec' -s t -l tty -d 'Allocate a pseudo-TTY' +complete -c docker -f -n '__fish_seen_subcommand_from exec' -s u -l user -d 'Username or UID (format: [:])' +complete -c docker -f -n '__fish_seen_subcommand_from exec' -s w -l workdir -d 'Working directory inside the container' +complete -c docker -f -n '__fish_seen_subcommand_from exec' -a '(__fish_print_docker_containers running)' -d "Container" # export complete -c docker -f -n '__fish_docker_no_subcommand' -a export -d 'Stream the contents of a container as a tar archive' -complete -c docker -A -f -n '__fish_seen_subcommand_from export' -l help -d 'Print usage' -complete -c docker -A -f -n '__fish_seen_subcommand_from export' -s o -l output -d 'Write to a file, instead of STDOUT' -complete -c docker -A -f -n '__fish_seen_subcommand_from export' -a '(__fish_print_docker_containers all)' -d "Container" +complete -c docker -f -n '__fish_seen_subcommand_from export' -l help -d 'Print usage' +complete -c docker -f -n '__fish_seen_subcommand_from export' -s o -l output -d 'Write to a file, instead of STDOUT' +complete -c docker -f -n '__fish_seen_subcommand_from export' -a '(__fish_print_docker_containers all)' -d "Container" # history complete -c docker -f -n '__fish_docker_no_subcommand' -a history -d 'Show the history of an image' -complete -c docker -A -f -n '__fish_seen_subcommand_from history' -l format -d 'Pretty-print images using a Go template' -complete -c docker -A -f -n '__fish_seen_subcommand_from history' -l help -d 'Print usage' -complete -c docker -A -f -n '__fish_seen_subcommand_from history' -s H -l human -d 'Print sizes and dates in human readable format' -complete -c docker -A -f -n '__fish_seen_subcommand_from history' -l no-trunc -d "Don't truncate output" -complete -c docker -A -f -n '__fish_seen_subcommand_from history' -s q -l quiet -d 'Only show image IDs' -complete -c docker -A -f -n '__fish_seen_subcommand_from history' -a '(__fish_print_docker_images)' -d "Image" +complete -c docker -f -n '__fish_seen_subcommand_from history' -l format -d 'Pretty-print images using a Go template' +complete -c docker -f -n '__fish_seen_subcommand_from history' -l help -d 'Print usage' +complete -c docker -f -n '__fish_seen_subcommand_from history' -s H -l human -d 'Print sizes and dates in human readable format' +complete -c docker -f -n '__fish_seen_subcommand_from history' -l no-trunc -d "Don't truncate output" +complete -c docker -f -n '__fish_seen_subcommand_from history' -s q -l quiet -d 'Only show image IDs' +complete -c docker -f -n '__fish_seen_subcommand_from history' -a '(__fish_print_docker_images)' -d "Image" # image complete -c docker -f -n '__fish_docker_no_subcommand' -a image -d 'Manage images' @@ -371,65 +371,65 @@ complete -c docker -f -n '__fish_seen_subcommand_from image' -a tag -d 'Create a # images complete -c docker -f -n '__fish_docker_no_subcommand' -a images -d 'List images' -complete -c docker -A -f -n '__fish_seen_subcommand_from images' -s a -l all -d 'Show all images (default hides intermediate images)' -complete -c docker -A -f -n '__fish_seen_subcommand_from images' -l digests -d 'Show digests' -complete -c docker -A -f -n '__fish_seen_subcommand_from images' -s f -l filter -d 'Filter output based on conditions provided' -complete -c docker -A -f -n '__fish_seen_subcommand_from images' -l format -d 'Pretty-print images using a Go template' -complete -c docker -A -f -n '__fish_seen_subcommand_from images' -l help -d 'Print usage' -complete -c docker -A -f -n '__fish_seen_subcommand_from images' -l no-trunc -d "Don't truncate output" -complete -c docker -A -f -n '__fish_seen_subcommand_from images' -s q -l quiet -d 'Only show image IDs' -complete -c docker -A -f -n '__fish_seen_subcommand_from images' -a '(__fish_print_docker_repositories)' -d "Repository" +complete -c docker -f -n '__fish_seen_subcommand_from images' -s a -l all -d 'Show all images (default hides intermediate images)' +complete -c docker -f -n '__fish_seen_subcommand_from images' -l digests -d 'Show digests' +complete -c docker -f -n '__fish_seen_subcommand_from images' -s f -l filter -d 'Filter output based on conditions provided' +complete -c docker -f -n '__fish_seen_subcommand_from images' -l format -d 'Pretty-print images using a Go template' +complete -c docker -f -n '__fish_seen_subcommand_from images' -l help -d 'Print usage' +complete -c docker -f -n '__fish_seen_subcommand_from images' -l no-trunc -d "Don't truncate output" +complete -c docker -f -n '__fish_seen_subcommand_from images' -s q -l quiet -d 'Only show image IDs' +complete -c docker -f -n '__fish_seen_subcommand_from images' -a '(__fish_print_docker_repositories)' -d "Repository" # import complete -c docker -f -n '__fish_docker_no_subcommand' -a import -d 'Create a new filesystem image from the contents of a tarball' -complete -c docker -A -f -n '__fish_seen_subcommand_from import' -s c -l change -d 'Apply Dockerfile instruction to the created image' -complete -c docker -A -f -n '__fish_seen_subcommand_from import' -s m -l message -d 'Set commit message for imported image' -complete -c docker -A -f -n '__fish_seen_subcommand_from import' -l help -d 'Print usage' +complete -c docker -f -n '__fish_seen_subcommand_from import' -s c -l change -d 'Apply Dockerfile instruction to the created image' +complete -c docker -f -n '__fish_seen_subcommand_from import' -s m -l message -d 'Set commit message for imported image' +complete -c docker -f -n '__fish_seen_subcommand_from import' -l help -d 'Print usage' # info complete -c docker -f -n '__fish_docker_no_subcommand' -a info -d 'Display system-wide information' -complete -c docker -A -f -n '__fish_seen_subcommand_from info' -s f -l format -d 'Format the output using the given go template' -complete -c docker -A -f -n '__fish_seen_subcommand_from info' -l help -d 'Print usage' +complete -c docker -f -n '__fish_seen_subcommand_from info' -s f -l format -d 'Format the output using the given go template' +complete -c docker -f -n '__fish_seen_subcommand_from info' -l help -d 'Print usage' # inspect complete -c docker -f -n '__fish_docker_no_subcommand' -a inspect -d 'Return low-level information on a container or image' -complete -c docker -A -f -n '__fish_seen_subcommand_from inspect' -s f -l format -d 'Format the output using the given go template.' -complete -c docker -A -f -n '__fish_seen_subcommand_from inspect' -l help -d 'Print usage' -complete -c docker -A -f -n '__fish_seen_subcommand_from inspect' -s s -l size -d 'Display total file sizes if the type is container.' -complete -c docker -A -f -n '__fish_seen_subcommand_from inspect' -l type -d 'Return JSON for specified type' -complete -c docker -A -f -n '__fish_seen_subcommand_from inspect' -a '(__fish_print_docker_images)' -d "Image" -complete -c docker -A -f -n '__fish_seen_subcommand_from inspect' -a '(__fish_print_docker_containers all)' -d "Container" +complete -c docker -f -n '__fish_seen_subcommand_from inspect' -s f -l format -d 'Format the output using the given go template.' +complete -c docker -f -n '__fish_seen_subcommand_from inspect' -l help -d 'Print usage' +complete -c docker -f -n '__fish_seen_subcommand_from inspect' -s s -l size -d 'Display total file sizes if the type is container.' +complete -c docker -f -n '__fish_seen_subcommand_from inspect' -l type -d 'Return JSON for specified type' +complete -c docker -f -n '__fish_seen_subcommand_from inspect' -a '(__fish_print_docker_images)' -d "Image" +complete -c docker -f -n '__fish_seen_subcommand_from inspect' -a '(__fish_print_docker_containers all)' -d "Container" # kill complete -c docker -f -n '__fish_docker_no_subcommand' -a kill -d 'Kill a running container' -complete -c docker -A -f -n '__fish_seen_subcommand_from kill' -l help -d 'Print usage' -complete -c docker -A -f -n '__fish_seen_subcommand_from kill' -s s -l signal -d 'Signal to send to the container' -complete -c docker -A -f -n '__fish_seen_subcommand_from kill' -a '(__fish_print_docker_containers running)' -d "Container" +complete -c docker -f -n '__fish_seen_subcommand_from kill' -l help -d 'Print usage' +complete -c docker -f -n '__fish_seen_subcommand_from kill' -s s -l signal -d 'Signal to send to the container' +complete -c docker -f -n '__fish_seen_subcommand_from kill' -a '(__fish_print_docker_containers running)' -d "Container" # load complete -c docker -f -n '__fish_docker_no_subcommand' -a load -d 'Load an image from a tar archive' -complete -c docker -A -f -n '__fish_seen_subcommand_from load' -l help -d 'Print usage' -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 q -l quiet -d 'Suppress the load output' +complete -c docker -f -n '__fish_seen_subcommand_from load' -l help -d 'Print usage' +complete -c docker -f -n '__fish_seen_subcommand_from load' -s i -l input -d 'Read from a tar archive file, instead of STDIN' +complete -c docker -f -n '__fish_seen_subcommand_from load' -s q -l quiet -d 'Suppress the load output' # login 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' -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' -l password-stdin -d 'Take the password from stdin' -complete -c docker -A -f -n '__fish_seen_subcommand_from login' -s u -l username -d 'Username' +complete -c docker -f -n '__fish_seen_subcommand_from login' -l help -d 'Print usage' +complete -c docker -f -n '__fish_seen_subcommand_from login' -s p -l password -d 'Password' +complete -c docker -f -n '__fish_seen_subcommand_from login' -l password-stdin -d 'Take the password from stdin' +complete -c docker -f -n '__fish_seen_subcommand_from login' -s u -l username -d 'Username' # logout complete -c docker -f -n '__fish_docker_no_subcommand' -a logout -d 'Log out from a Docker registry server' # logs complete -c docker -f -n '__fish_docker_no_subcommand' -a logs -d 'Fetch the logs of a container' -complete -c docker -A -f -n '__fish_seen_subcommand_from logs' -s f -l follow -d 'Follow log output' -complete -c docker -A -f -n '__fish_seen_subcommand_from logs' -l help -d 'Print usage' -complete -c docker -A -f -n '__fish_seen_subcommand_from logs' -s t -l timestamps -d 'Show timestamps' -complete -c docker -A -f -n '__fish_seen_subcommand_from logs' -l since -d 'Show logs since timestamp' -complete -c docker -A -f -n '__fish_seen_subcommand_from logs' -l tail -d 'Output the specified number of lines at the end of logs (defaults to all logs)' -complete -c docker -A -f -n '__fish_seen_subcommand_from logs' -a '(__fish_print_docker_containers running)' -d "Container" +complete -c docker -f -n '__fish_seen_subcommand_from logs' -s f -l follow -d 'Follow log output' +complete -c docker -f -n '__fish_seen_subcommand_from logs' -l help -d 'Print usage' +complete -c docker -f -n '__fish_seen_subcommand_from logs' -s t -l timestamps -d 'Show timestamps' +complete -c docker -f -n '__fish_seen_subcommand_from logs' -l since -d 'Show logs since timestamp' +complete -c docker -f -n '__fish_seen_subcommand_from logs' -l tail -d 'Output the specified number of lines at the end of logs (defaults to all logs)' +complete -c docker -f -n '__fish_seen_subcommand_from logs' -a '(__fish_print_docker_containers running)' -d "Container" # network complete -c docker -f -n '__fish_docker_no_subcommand' -a network -d 'Manage networks' @@ -471,119 +471,119 @@ complete -c docker -f -n '__fish_seen_subcommand_from plugin' -a upgrade -d 'Upg # port complete -c docker -f -n '__fish_docker_no_subcommand' -a port -d 'Lookup the public-facing port that is NAT-ed to PRIVATE_PORT' -complete -c docker -A -f -n '__fish_seen_subcommand_from port' -l help -d 'Print usage' -complete -c docker -A -f -n '__fish_seen_subcommand_from port' -a '(__fish_print_docker_containers running)' -d "Container" +complete -c docker -f -n '__fish_seen_subcommand_from port' -l help -d 'Print usage' +complete -c docker -f -n '__fish_seen_subcommand_from port' -a '(__fish_print_docker_containers running)' -d "Container" # pause complete -c docker -f -n '__fish_docker_no_subcommand' -a pause -d 'Pause all processes within a container' -complete -c docker -A -f -n '__fish_seen_subcommand_from pause' -a '(__fish_print_docker_containers running)' -d "Container" +complete -c docker -f -n '__fish_seen_subcommand_from pause' -a '(__fish_print_docker_containers running)' -d "Container" # ps complete -c docker -f -n '__fish_docker_no_subcommand' -a ps -d 'List containers' -complete -c docker -A -f -n '__fish_seen_subcommand_from ps' -s a -l all -d 'Show all containers. Only running containers are shown by default.' -complete -c docker -A -f -n '__fish_seen_subcommand_from ps' -l before -d 'Show only container created before Id or Name, include non-running ones.' -complete -c docker -A -f -n '__fish_seen_subcommand_from ps' -s f -l filter -d 'Provide filter values. Valid filters:' -complete -c docker -A -f -n '__fish_seen_subcommand_from ps' -l help -d 'Print usage' -complete -c docker -A -f -n '__fish_seen_subcommand_from ps' -s l -l latest -d 'Show only the latest created container, include non-running ones.' -complete -c docker -A -f -n '__fish_seen_subcommand_from ps' -s n -d 'Show n last created containers, include non-running ones.' -complete -c docker -A -f -n '__fish_seen_subcommand_from ps' -l no-trunc -d "Don't truncate output" -complete -c docker -A -f -n '__fish_seen_subcommand_from ps' -s q -l quiet -d 'Only display container IDs' -complete -c docker -A -f -n '__fish_seen_subcommand_from ps' -s s -l size -d 'Display total file sizes' -complete -c docker -A -f -n '__fish_seen_subcommand_from ps' -l since -d 'Show only containers created since Id or Name, include non-running ones.' +complete -c docker -f -n '__fish_seen_subcommand_from ps' -s a -l all -d 'Show all containers. Only running containers are shown by default.' +complete -c docker -f -n '__fish_seen_subcommand_from ps' -l before -d 'Show only container created before Id or Name, include non-running ones.' +complete -c docker -f -n '__fish_seen_subcommand_from ps' -s f -l filter -d 'Provide filter values. Valid filters:' +complete -c docker -f -n '__fish_seen_subcommand_from ps' -l help -d 'Print usage' +complete -c docker -f -n '__fish_seen_subcommand_from ps' -s l -l latest -d 'Show only the latest created container, include non-running ones.' +complete -c docker -f -n '__fish_seen_subcommand_from ps' -s n -d 'Show n last created containers, include non-running ones.' +complete -c docker -f -n '__fish_seen_subcommand_from ps' -l no-trunc -d "Don't truncate output" +complete -c docker -f -n '__fish_seen_subcommand_from ps' -s q -l quiet -d 'Only display container IDs' +complete -c docker -f -n '__fish_seen_subcommand_from ps' -s s -l size -d 'Display total file sizes' +complete -c docker -f -n '__fish_seen_subcommand_from ps' -l since -d 'Show only containers created since Id or Name, include non-running ones.' # pull complete -c docker -f -n '__fish_docker_no_subcommand' -a pull -d 'Pull an image or a repository from a Docker registry server' -complete -c docker -A -f -n '__fish_seen_subcommand_from pull' -s a -l all-tags -d 'Download all tagged images in the repository' -complete -c docker -A -f -n '__fish_seen_subcommand_from pull' -l help -d 'Print usage' -complete -c docker -A -f -n '__fish_seen_subcommand_from pull' -a '(__fish_print_docker_images)' -d "Image" -complete -c docker -A -f -n '__fish_seen_subcommand_from pull' -a '(__fish_print_docker_repositories)' -d "Repository" +complete -c docker -f -n '__fish_seen_subcommand_from pull' -s a -l all-tags -d 'Download all tagged images in the repository' +complete -c docker -f -n '__fish_seen_subcommand_from pull' -l help -d 'Print usage' +complete -c docker -f -n '__fish_seen_subcommand_from pull' -a '(__fish_print_docker_images)' -d "Image" +complete -c docker -f -n '__fish_seen_subcommand_from pull' -a '(__fish_print_docker_repositories)' -d "Repository" # push complete -c docker -f -n '__fish_docker_no_subcommand' -a push -d 'Push an image or a repository to a Docker registry server' -complete -c docker -A -f -n '__fish_seen_subcommand_from push' -l help -d 'Print usage' -complete -c docker -A -f -n '__fish_seen_subcommand_from push' -a '(__fish_print_docker_images)' -d "Image" -complete -c docker -A -f -n '__fish_seen_subcommand_from push' -a '(__fish_print_docker_repositories)' -d "Repository" +complete -c docker -f -n '__fish_seen_subcommand_from push' -l help -d 'Print usage' +complete -c docker -f -n '__fish_seen_subcommand_from push' -a '(__fish_print_docker_images)' -d "Image" +complete -c docker -f -n '__fish_seen_subcommand_from push' -a '(__fish_print_docker_repositories)' -d "Repository" # rename complete -c docker -f -n '__fish_docker_no_subcommand' -a rename -d 'Rename an existing container' # restart complete -c docker -f -n '__fish_docker_no_subcommand' -a restart -d 'Restart a container' -complete -c docker -A -f -n '__fish_seen_subcommand_from restart' -l help -d 'Print usage' -complete -c docker -A -f -n '__fish_seen_subcommand_from restart' -s t -l time -d 'Number of seconds to try to stop for before killing the container. Once killed it will then be restarted. Default is 10 seconds.' -complete -c docker -A -f -n '__fish_seen_subcommand_from restart' -a '(__fish_print_docker_containers running)' -d "Container" +complete -c docker -f -n '__fish_seen_subcommand_from restart' -l help -d 'Print usage' +complete -c docker -f -n '__fish_seen_subcommand_from restart' -s t -l time -d 'Number of seconds to try to stop for before killing the container. Once killed it will then be restarted. Default is 10 seconds.' +complete -c docker -f -n '__fish_seen_subcommand_from restart' -a '(__fish_print_docker_containers running)' -d "Container" # rm complete -c docker -f -n '__fish_docker_no_subcommand' -a rm -d 'Remove one or more containers' -complete -c docker -A -f -n '__fish_seen_subcommand_from rm' -s f -l force -d 'Force the removal of a running container (uses SIGKILL)' -complete -c docker -A -f -n '__fish_seen_subcommand_from rm' -l help -d 'Print usage' -complete -c docker -A -f -n '__fish_seen_subcommand_from rm' -s l -l link -d 'Remove the specified link and not the underlying container' -complete -c docker -A -f -n '__fish_seen_subcommand_from rm' -s v -l volumes -d 'Remove anonymous volumes associated with the container' -complete -c docker -A -f -n '__fish_seen_subcommand_from rm' -a '(__fish_print_docker_containers stopped)' -d "Container" -complete -c docker -A -f -n '__fish_seen_subcommand_from rm' -s f -l force -a '(__fish_print_docker_containers all)' -d "Container" +complete -c docker -f -n '__fish_seen_subcommand_from rm' -s f -l force -d 'Force the removal of a running container (uses SIGKILL)' +complete -c docker -f -n '__fish_seen_subcommand_from rm' -l help -d 'Print usage' +complete -c docker -f -n '__fish_seen_subcommand_from rm' -s l -l link -d 'Remove the specified link and not the underlying container' +complete -c docker -f -n '__fish_seen_subcommand_from rm' -s v -l volumes -d 'Remove anonymous volumes associated with the container' +complete -c docker -f -n '__fish_seen_subcommand_from rm' -a '(__fish_print_docker_containers stopped)' -d "Container" +complete -c docker -f -n '__fish_seen_subcommand_from rm' -s f -l force -a '(__fish_print_docker_containers all)' -d "Container" # rmi complete -c docker -f -n '__fish_docker_no_subcommand' -a rmi -d 'Remove one or more images' -complete -c docker -A -f -n '__fish_seen_subcommand_from rmi' -s f -l force -d 'Force removal of the image' -complete -c docker -A -f -n '__fish_seen_subcommand_from rmi' -l help -d 'Print usage' -complete -c docker -A -f -n '__fish_seen_subcommand_from rmi' -l no-prune -d 'Do not delete untagged parents' -complete -c docker -A -f -n '__fish_seen_subcommand_from rmi' -a '(__fish_print_docker_images)' -d "Image" +complete -c docker -f -n '__fish_seen_subcommand_from rmi' -s f -l force -d 'Force removal of the image' +complete -c docker -f -n '__fish_seen_subcommand_from rmi' -l help -d 'Print usage' +complete -c docker -f -n '__fish_seen_subcommand_from rmi' -l no-prune -d 'Do not delete untagged parents' +complete -c docker -f -n '__fish_seen_subcommand_from rmi' -a '(__fish_print_docker_images)' -d "Image" # run complete -c docker -f -n '__fish_docker_no_subcommand' -a run -d 'Run a command in a new container' -complete -c docker -A -f -n '__fish_seen_subcommand_from run' -s a -l attach -d 'Attach to STDIN, STDOUT or STDERR.' -complete -c docker -A -f -n '__fish_seen_subcommand_from run' -l add-host -d 'Add a custom host-to-IP mapping (host:ip)' -complete -c docker -A -f -n '__fish_seen_subcommand_from run' -s c -l cpu-shares -d 'CPU shares (relative weight)' -complete -c docker -A -f -n '__fish_seen_subcommand_from run' -l cap-add -d 'Add Linux capabilities' -complete -c docker -A -f -n '__fish_seen_subcommand_from run' -l cap-drop -d 'Drop Linux capabilities' -complete -c docker -A -f -n '__fish_seen_subcommand_from run' -l cidfile -d 'Write the container ID to the file' -complete -c docker -A -f -n '__fish_seen_subcommand_from run' -l cgroupns -d 'Cgroup namespace mode to use' -complete -c docker -A -f -n '__fish_seen_subcommand_from run' -l cpuset -d 'CPUs in which to allow execution (0-3, 0,1)' -complete -c docker -A -f -n '__fish_seen_subcommand_from run' -s d -l detach -d 'Detached mode: run the container in the background and print the new container ID' -complete -c docker -A -f -n '__fish_seen_subcommand_from run' -l device -d 'Add a host device to the container (e.g. --device=/dev/sdc:/dev/xvdc:rwm)' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l device-cgroup-rule -d 'Add a rule to the cgroup allowed devices list (e.g. --device-cgroup-rule="c 13:37 rwm")' -complete -c docker -A -f -n '__fish_seen_subcommand_from run' -l dns -d 'Set custom DNS servers' -complete -c docker -A -f -n '__fish_seen_subcommand_from run' -l dns-opt -d "Set custom DNS options (Use --dns-opt='' if you don't wish to set options)" -complete -c docker -A -f -n '__fish_seen_subcommand_from run' -l dns-search -d "Set custom DNS search domains (Use --dns-search=. if you don't wish to set the search domain)" -complete -c docker -A -f -n '__fish_seen_subcommand_from run' -s e -l env -d 'Set environment variables' -complete -c docker -A -f -n '__fish_seen_subcommand_from run' -l entrypoint -d 'Overwrite the default ENTRYPOINT of the image' -complete -c docker -A -f -n '__fish_seen_subcommand_from run' -l env-file -d 'Read in a line delimited file of environment variables' -complete -c docker -A -f -n '__fish_seen_subcommand_from run' -l expose -d 'Expose a port or a range of ports (e.g. --expose=3300-3310) from the container without publishing it to your host' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l group-add -d 'Add additional groups to run as' -complete -c docker -A -f -n '__fish_seen_subcommand_from run' -s h -l hostname -d 'Container host name' -complete -c docker -A -f -n '__fish_seen_subcommand_from run' -l help -d 'Print usage' -complete -c docker -A -f -n '__fish_seen_subcommand_from run' -s i -l interactive -d 'Keep STDIN open even if not attached' -complete -c docker -A -f -n '__fish_seen_subcommand_from run' -l ipc -d 'Default is to create a private IPC namespace (POSIX SysV IPC) for the container' -complete -c docker -A -f -n '__fish_seen_subcommand_from run' -l link -d 'Add link to another container in the form of :alias' -complete -c docker -A -f -n '__fish_seen_subcommand_from run' -s m -l memory -d 'Memory limit (format: [], where unit = b, k, m or g)' -complete -c docker -A -f -n '__fish_seen_subcommand_from run' -l mac-address -d 'Container MAC address (e.g., 92:d0:c6:0a:29:33)' -complete -c docker -A -f -n '__fish_seen_subcommand_from run' -l memory-swap -d "Total memory usage (memory + swap), set '-1' to disable swap (format: [], where unit = b, k, m or g)" -complete -c docker -A -f -n '__fish_seen_subcommand_from run' -l mount -d 'Attach a filesystem mount to the container' -complete -c docker -A -f -n '__fish_seen_subcommand_from run' -l name -d 'Assign a name to the container' -complete -c docker -A -f -n '__fish_seen_subcommand_from run' -l net -d 'Set the Network mode for the container' -complete -c docker -A -f -n '__fish_seen_subcommand_from run' -s P -l publish-all -d 'Publish all exposed ports to random ports on the host interfaces' -complete -c docker -A -f -n '__fish_seen_subcommand_from run' -s p -l publish -d "Publish a container's port to the host" -complete -c docker -A -f -n '__fish_seen_subcommand_from run' -l pid -d 'Default is to create a private PID namespace for the container' -complete -c docker -A -f -n '__fish_seen_subcommand_from run' -l privileged -d 'Give extended privileges to this container' -complete -c docker -A -f -n '__fish_seen_subcommand_from run' -l read-only -d "Mount the container's root filesystem as read only" -complete -c docker -A -f -n '__fish_seen_subcommand_from run' -l restart -d 'Restart policy to apply when a container exits (no, on-failure[:max-retry], always)' -complete -c docker -A -f -n '__fish_seen_subcommand_from run' -l rm -d 'Automatically remove the container when it exits (incompatible with -d)' -complete -c docker -A -f -n '__fish_seen_subcommand_from run' -l security-opt -d 'Security Options' -complete -c docker -A -f -n '__fish_seen_subcommand_from run' -l sig-proxy -d 'Proxy received signals to the process (non-TTY mode only). SIGCHLD, SIGSTOP, and SIGKILL are not proxied.' -complete -c docker -A -f -n '__fish_seen_subcommand_from run' -l stop-signal -d 'Signal to kill a container' -complete -c docker -A -f -n '__fish_seen_subcommand_from run' -s t -l tty -d 'Allocate a pseudo-TTY' -complete -c docker -A -f -n '__fish_seen_subcommand_from run' -s u -l user -d 'Username or UID' -complete -c docker -A -f -n '__fish_seen_subcommand_from run' -l tmpfs -d 'Mount tmpfs on a directory' -complete -c docker -A -f -n '__fish_seen_subcommand_from run' -s v -l volume -d 'Bind mount a volume (e.g., from the host: -v /host:/container, from Docker: -v /container)' -complete -c docker -A -f -n '__fish_seen_subcommand_from run' -l volumes-from -d 'Mount volumes from the specified container(s)' -complete -c docker -A -f -n '__fish_seen_subcommand_from run' -s w -l workdir -d 'Working directory inside the container' -complete -c docker -A -f -n '__fish_seen_subcommand_from run' -a '(__fish_print_docker_images)' -d "Image" +complete -c docker -f -n '__fish_seen_subcommand_from run' -s a -l attach -d 'Attach to STDIN, STDOUT or STDERR.' +complete -c docker -f -n '__fish_seen_subcommand_from run' -l add-host -d 'Add a custom host-to-IP mapping (host:ip)' +complete -c docker -f -n '__fish_seen_subcommand_from run' -s c -l cpu-shares -d 'CPU shares (relative weight)' +complete -c docker -f -n '__fish_seen_subcommand_from run' -l cap-add -d 'Add Linux capabilities' +complete -c docker -f -n '__fish_seen_subcommand_from run' -l cap-drop -d 'Drop Linux capabilities' +complete -c docker -f -n '__fish_seen_subcommand_from run' -l cgroupns -d 'Cgroup namespace mode to use' +complete -c docker -f -n '__fish_seen_subcommand_from run' -l cidfile -d 'Write the container ID to the file' +complete -c docker -f -n '__fish_seen_subcommand_from run' -l cpuset -d 'CPUs in which to allow execution (0-3, 0,1)' +complete -c docker -f -n '__fish_seen_subcommand_from run' -s d -l detach -d 'Detached mode: run the container in the background and print the new container ID' +complete -c docker -f -n '__fish_seen_subcommand_from run' -l device -d 'Add a host device to the container (e.g. --device=/dev/sdc:/dev/xvdc:rwm)' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l device-cgroup-rule -d 'Add a rule to the cgroup allowed devices list (e.g. --device-cgroup-rule="c 13:37 rwm")' +complete -c docker -f -n '__fish_seen_subcommand_from run' -l dns -d 'Set custom DNS servers' +complete -c docker -f -n '__fish_seen_subcommand_from run' -l dns-opt -d "Set custom DNS options (Use --dns-opt='' if you don't wish to set options)" +complete -c docker -f -n '__fish_seen_subcommand_from run' -l dns-search -d "Set custom DNS search domains (Use --dns-search=. if you don't wish to set the search domain)" +complete -c docker -f -n '__fish_seen_subcommand_from run' -s e -l env -d 'Set environment variables' +complete -c docker -f -n '__fish_seen_subcommand_from run' -l entrypoint -d 'Overwrite the default ENTRYPOINT of the image' +complete -c docker -f -n '__fish_seen_subcommand_from run' -l env-file -d 'Read in a line delimited file of environment variables' +complete -c docker -f -n '__fish_seen_subcommand_from run' -l expose -d 'Expose a port or a range of ports (e.g. --expose=3300-3310) from the container without publishing it to your host' +complete -c docker -f -n '__fish_seen_subcommand_from create' -l group-add -d 'Add additional groups to run as' +complete -c docker -f -n '__fish_seen_subcommand_from run' -s h -l hostname -d 'Container host name' +complete -c docker -f -n '__fish_seen_subcommand_from run' -l help -d 'Print usage' +complete -c docker -f -n '__fish_seen_subcommand_from run' -s i -l interactive -d 'Keep STDIN open even if not attached' +complete -c docker -f -n '__fish_seen_subcommand_from run' -l ipc -d 'Default is to create a private IPC namespace (POSIX SysV IPC) for the container' +complete -c docker -f -n '__fish_seen_subcommand_from run' -l link -d 'Add link to another container in the form of :alias' +complete -c docker -f -n '__fish_seen_subcommand_from run' -s m -l memory -d 'Memory limit (format: [], where unit = b, k, m or g)' +complete -c docker -f -n '__fish_seen_subcommand_from run' -l mac-address -d 'Container MAC address (e.g., 92:d0:c6:0a:29:33)' +complete -c docker -f -n '__fish_seen_subcommand_from run' -l memory-swap -d "Total memory usage (memory + swap), set '-1' to disable swap (format: [], where unit = b, k, m or g)" +complete -c docker -f -n '__fish_seen_subcommand_from run' -l mount -d 'Attach a filesystem mount to the container' +complete -c docker -f -n '__fish_seen_subcommand_from run' -l name -d 'Assign a name to the container' +complete -c docker -f -n '__fish_seen_subcommand_from run' -l net -d 'Set the Network mode for the container' +complete -c docker -f -n '__fish_seen_subcommand_from run' -s P -l publish-all -d 'Publish all exposed ports to random ports on the host interfaces' +complete -c docker -f -n '__fish_seen_subcommand_from run' -s p -l publish -d "Publish a container's port to the host" +complete -c docker -f -n '__fish_seen_subcommand_from run' -l pid -d 'Default is to create a private PID namespace for the container' +complete -c docker -f -n '__fish_seen_subcommand_from run' -l privileged -d 'Give extended privileges to this container' +complete -c docker -f -n '__fish_seen_subcommand_from run' -l read-only -d "Mount the container's root filesystem as read only" +complete -c docker -f -n '__fish_seen_subcommand_from run' -l restart -d 'Restart policy to apply when a container exits (no, on-failure[:max-retry], always)' +complete -c docker -f -n '__fish_seen_subcommand_from run' -l rm -d 'Automatically remove the container when it exits (incompatible with -d)' +complete -c docker -f -n '__fish_seen_subcommand_from run' -l security-opt -d 'Security Options' +complete -c docker -f -n '__fish_seen_subcommand_from run' -l sig-proxy -d 'Proxy received signals to the process (non-TTY mode only). SIGCHLD, SIGSTOP, and SIGKILL are not proxied.' +complete -c docker -f -n '__fish_seen_subcommand_from run' -l stop-signal -d 'Signal to kill a container' +complete -c docker -f -n '__fish_seen_subcommand_from run' -s t -l tty -d 'Allocate a pseudo-TTY' +complete -c docker -f -n '__fish_seen_subcommand_from run' -s u -l user -d 'Username or UID' +complete -c docker -f -n '__fish_seen_subcommand_from run' -l tmpfs -d 'Mount tmpfs on a directory' +complete -c docker -f -n '__fish_seen_subcommand_from run' -s v -l volume -d 'Bind mount a volume (e.g., from the host: -v /host:/container, from Docker: -v /container)' +complete -c docker -f -n '__fish_seen_subcommand_from run' -l volumes-from -d 'Mount volumes from the specified container(s)' +complete -c docker -f -n '__fish_seen_subcommand_from run' -s w -l workdir -d 'Working directory inside the container' +complete -c docker -f -n '__fish_seen_subcommand_from run' -a '(__fish_print_docker_images)' -d "Image" # save complete -c docker -f -n '__fish_docker_no_subcommand' -a save -d 'Save an image to a tar archive' -complete -c docker -A -f -n '__fish_seen_subcommand_from save' -l help -d 'Print usage' -complete -c docker -A -f -n '__fish_seen_subcommand_from save' -s o -l output -d 'Write to an file, instead of STDOUT' -complete -c docker -A -f -n '__fish_seen_subcommand_from save' -a '(__fish_print_docker_images)' -d "Image" +complete -c docker -f -n '__fish_seen_subcommand_from save' -l help -d 'Print usage' +complete -c docker -f -n '__fish_seen_subcommand_from save' -s o -l output -d 'Write to an file, instead of STDOUT' +complete -c docker -f -n '__fish_seen_subcommand_from save' -a '(__fish_print_docker_images)' -d "Image" # secret complete -c docker -f -n '__fish_docker_no_subcommand' -a secret -d 'Manage Docker secrets' @@ -594,10 +594,10 @@ complete -c docker -f -n '__fish_seen_subcommand_from secret' -a rm -d 'Remove o # search complete -c docker -f -n '__fish_docker_no_subcommand' -a search -d 'Search for an image on the registry (defaults to the Docker Hub)' -complete -c docker -A -f -n '__fish_seen_subcommand_from search' -l automated -d 'Only show automated builds' -complete -c docker -A -f -n '__fish_seen_subcommand_from search' -l help -d 'Print usage' -complete -c docker -A -f -n '__fish_seen_subcommand_from search' -l no-trunc -d "Don't truncate output" -complete -c docker -A -f -n '__fish_seen_subcommand_from search' -s s -l stars -d 'Only displays with at least x stars' +complete -c docker -f -n '__fish_seen_subcommand_from search' -l automated -d 'Only show automated builds' +complete -c docker -f -n '__fish_seen_subcommand_from search' -l help -d 'Print usage' +complete -c docker -f -n '__fish_seen_subcommand_from search' -l no-trunc -d "Don't truncate output" +complete -c docker -f -n '__fish_seen_subcommand_from search' -s s -l stars -d 'Only displays with at least x stars' # service complete -c docker -f -n '__fish_docker_no_subcommand' -a service -d 'Manage services' @@ -613,22 +613,22 @@ complete -c docker -f -n '__fish_seen_subcommand_from service' -a update -d 'Upd # start complete -c docker -f -n '__fish_docker_no_subcommand' -a start -d 'Start a container' -complete -c docker -A -f -n '__fish_seen_subcommand_from start' -s a -l attach -d "Attach container's STDOUT and STDERR and forward all signals to the process" -complete -c docker -A -f -n '__fish_seen_subcommand_from start' -l help -d 'Print usage' -complete -c docker -A -f -n '__fish_seen_subcommand_from start' -s i -l interactive -d "Attach container's STDIN" -complete -c docker -A -f -n '__fish_seen_subcommand_from start' -a '(__fish_print_docker_containers stopped)' -d "Container" +complete -c docker -f -n '__fish_seen_subcommand_from start' -s a -l attach -d "Attach container's STDOUT and STDERR and forward all signals to the process" +complete -c docker -f -n '__fish_seen_subcommand_from start' -l help -d 'Print usage' +complete -c docker -f -n '__fish_seen_subcommand_from start' -s i -l interactive -d "Attach container's STDIN" +complete -c docker -f -n '__fish_seen_subcommand_from start' -a '(__fish_print_docker_containers stopped)' -d "Container" # stats complete -c docker -f -n '__fish_docker_no_subcommand' -a stats -d "Display a live stream of one or more containers' resource usage statistics" -complete -c docker -A -f -n '__fish_seen_subcommand_from stats' -l help -d 'Print usage' -complete -c docker -A -f -n '__fish_seen_subcommand_from stats' -l no-stream -d 'Disable streaming stats and only pull the first result' -complete -c docker -A -f -n '__fish_seen_subcommand_from stats' -a '(__fish_print_docker_containers running)' -d "Container" +complete -c docker -f -n '__fish_seen_subcommand_from stats' -l help -d 'Print usage' +complete -c docker -f -n '__fish_seen_subcommand_from stats' -l no-stream -d 'Disable streaming stats and only pull the first result' +complete -c docker -f -n '__fish_seen_subcommand_from stats' -a '(__fish_print_docker_containers running)' -d "Container" # stop complete -c docker -f -n '__fish_docker_no_subcommand' -a stop -d 'Stop a container' -complete -c docker -A -f -n '__fish_seen_subcommand_from stop' -l help -d 'Print usage' -complete -c docker -A -f -n '__fish_seen_subcommand_from stop' -s t -l time -d 'Number of seconds to wait for the container to stop before killing it. Default is 10 seconds.' -complete -c docker -A -f -n '__fish_seen_subcommand_from stop' -a '(__fish_print_docker_containers running)' -d "Container" +complete -c docker -f -n '__fish_seen_subcommand_from stop' -l help -d 'Print usage' +complete -c docker -f -n '__fish_seen_subcommand_from stop' -s t -l time -d 'Number of seconds to wait for the container to stop before killing it. Default is 10 seconds.' +complete -c docker -f -n '__fish_seen_subcommand_from stop' -a '(__fish_print_docker_containers running)' -d "Container" # swarm complete -c docker -f -n '__fish_docker_no_subcommand' -a swarm -d 'Manage Swarm' @@ -650,50 +650,50 @@ complete -c docker -f -n '__fish_seen_subcommand_from system' -a prune -d 'Remov # tag complete -c docker -f -n '__fish_docker_no_subcommand' -a tag -d 'Tag an image into a repository' -complete -c docker -A -f -n '__fish_seen_subcommand_from tag' -s f -l force -d 'Force' -complete -c docker -A -f -n '__fish_seen_subcommand_from tag' -l help -d 'Print usage' +complete -c docker -f -n '__fish_seen_subcommand_from tag' -s f -l force -d 'Force' +complete -c docker -f -n '__fish_seen_subcommand_from tag' -l help -d 'Print usage' # top complete -c docker -f -n '__fish_docker_no_subcommand' -a top -d 'Lookup the running processes of a container' -complete -c docker -A -f -n '__fish_seen_subcommand_from top' -l help -d 'Print usage' -complete -c docker -A -f -n '__fish_seen_subcommand_from top' -a '(__fish_print_docker_containers running)' -d "Container" +complete -c docker -f -n '__fish_seen_subcommand_from top' -l help -d 'Print usage' +complete -c docker -f -n '__fish_seen_subcommand_from top' -a '(__fish_print_docker_containers running)' -d "Container" #trust complete -c docker -f -n '__fish_docker_no_subcommand' -a trust -d 'Manage trust on Docker images' -complete -c docker -A -f -n '__fish_seen_subcommand_from trust' -l help -d 'Print usage' +complete -c docker -f -n '__fish_seen_subcommand_from trust' -l help -d 'Print usage' #trust inspect -complete -c docker -A -f -n '__fish_docker_no_subcommand_trust' -a inspect -d 'Return low-level information about keys and signatures' -complete -c docker -A -f -n '__fish_docker_subcommand_path trust inspect' -l pretty -d 'Print the information in a human friendly format' +complete -c docker -f -n '__fish_docker_no_subcommand_trust' -a inspect -d 'Return low-level information about keys and signatures' +complete -c docker -f -n '__fish_docker_subcommand_path trust inspect' -l pretty -d 'Print the information in a human friendly format' #trust key -complete -c docker -A -f -n '__fish_docker_no_subcommand_trust' -a key -d 'Manage keys for signing Docker images' -complete -c docker -A -f -n '__fish_docker_subcommand_path trust key; and __fish_docker_subcommand_path_without generate load' -a generate -d 'Generate and load a signing key-pair' -complete -c docker -A -f -n '__fish_docker_subcommand_path trust key load' -l dir -d 'Directory to generate key in, defaults to current directory' -complete -c docker -A -f -n '__fish_docker_subcommand_path trust key; and __fish_docker_subcommand_path_without generate load' -a load -d 'Load a private key file for signing' -complete -c docker -A -f -n '__fish_docker_subcommand_path trust key load' -l name -d 'Name for the loaded key (default "signer")' +complete -c docker -f -n '__fish_docker_no_subcommand_trust' -a key -d 'Manage keys for signing Docker images' +complete -c docker -f -n '__fish_docker_subcommand_path trust key; and __fish_docker_subcommand_path_without generate load' -a generate -d 'Generate and load a signing key-pair' +complete -c docker -f -n '__fish_docker_subcommand_path trust key load' -l dir -d 'Directory to generate key in, defaults to current directory' +complete -c docker -f -n '__fish_docker_subcommand_path trust key; and __fish_docker_subcommand_path_without generate load' -a load -d 'Load a private key file for signing' +complete -c docker -f -n '__fish_docker_subcommand_path trust key load' -l name -d 'Name for the loaded key (default "signer")' #trust revoke -complete -c docker -A -f -n '__fish_docker_no_subcommand_trust' -a revoke -d 'Remove trust for an image' -complete -c docker -A -f -n '__fish_docker_subcommand_path trust revoke' -s y -l yes -d 'Do not prompt for confirmation' +complete -c docker -f -n '__fish_docker_no_subcommand_trust' -a revoke -d 'Remove trust for an image' +complete -c docker -f -n '__fish_docker_subcommand_path trust revoke' -s y -l yes -d 'Do not prompt for confirmation' #trust sign -complete -c docker -A -f -n '__fish_docker_no_subcommand_trust' -a sign -d 'Sign an image' -complete -c docker -A -f -n '__fish_docker_subcommand_path trust sign' -l local -d 'Sign a locally tagged image' +complete -c docker -f -n '__fish_docker_no_subcommand_trust' -a sign -d 'Sign an image' +complete -c docker -f -n '__fish_docker_subcommand_path trust sign' -l local -d 'Sign a locally tagged image' #trust signer -complete -c docker -A -f -n '__fish_docker_no_subcommand_trust' -a signer -d 'Manage entities who can sign Docker images' -complete -c docker -A -f -n '__fish_docker_subcommand_path trust signer; and __fish_docker_subcommand_path_without add remove' -a add -d 'Add a signer' -complete -c docker -A -f -n '__fish_docker_subcommand_path trust signer; and __fish_docker_subcommand_path_without add remove' -a remove -d 'remove a signer' +complete -c docker -f -n '__fish_docker_no_subcommand_trust' -a signer -d 'Manage entities who can sign Docker images' +complete -c docker -f -n '__fish_docker_subcommand_path trust signer; and __fish_docker_subcommand_path_without add remove' -a add -d 'Add a signer' +complete -c docker -f -n '__fish_docker_subcommand_path trust signer; and __fish_docker_subcommand_path_without add remove' -a remove -d 'remove a signer' # unpause complete -c docker -f -n '__fish_docker_no_subcommand' -a unpause -d 'Unpause a paused container' -complete -c docker -A -f -n '__fish_seen_subcommand_from unpause' -a '(__fish_print_docker_containers running)' -d "Container" +complete -c docker -f -n '__fish_seen_subcommand_from unpause' -a '(__fish_print_docker_containers running)' -d "Container" # version complete -c docker -f -n '__fish_docker_no_subcommand' -a version -d 'Show the Docker version information' -complete -c docker -A -f -n '__fish_seen_subcommand_from version' -s f -l format -d 'Format the output using the given go template' -complete -c docker -A -f -n '__fish_seen_subcommand_from version' -l help -d 'Print usage' +complete -c docker -f -n '__fish_seen_subcommand_from version' -s f -l format -d 'Format the output using the given go template' +complete -c docker -f -n '__fish_seen_subcommand_from version' -l help -d 'Print usage' # volume complete -c docker -f -n '__fish_docker_no_subcommand' -a volume -d 'Manage volumes' @@ -706,5 +706,5 @@ complete -c docker -f -n '__fish_seen_subcommand_from volume; and __fish_seen_su # wait 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' -a '(__fish_print_docker_containers running)' -d "Container" +complete -c docker -f -n '__fish_seen_subcommand_from wait' -l help -d 'Print usage' +complete -c docker -f -n '__fish_seen_subcommand_from wait' -a '(__fish_print_docker_containers running)' -d "Container" From cca12b5e092c35f9641d7d0eaf28286f29a66243 Mon Sep 17 00:00:00 2001 From: Artur Juraszek Date: Thu, 5 Jul 2018 19:44:22 +0200 Subject: [PATCH 13/14] Enable `ls` and `rm` aliases in fish completions `ls` -> `list` `rm` -> `remove` Signed-off-by: Artur Juraszek --- contrib/completion/fish/docker.fish | 34 ++++++++++++++--------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/contrib/completion/fish/docker.fish b/contrib/completion/fish/docker.fish index c831d43b3183..1cad85cab25d 100644 --- a/contrib/completion/fish/docker.fish +++ b/contrib/completion/fish/docker.fish @@ -177,8 +177,8 @@ complete -c docker -f -n '__fish_seen_subcommand_from commit' -a '(__fish_print_ complete -c docker -f -n '__fish_docker_no_subcommand' -a config -d "Manage Docker configs" complete -c docker -f -n '__fish_seen_subcommand_from config' -a create -d 'Create a config from a file or STDIN' complete -c docker -f -n '__fish_seen_subcommand_from config' -a inspect -d 'Display detailed information on one or more configs' -complete -c docker -f -n '__fish_seen_subcommand_from config' -a ls -d 'List configs' -complete -c docker -f -n '__fish_seen_subcommand_from config' -a rm -d 'Remove one or more configs' +complete -c docker -f -n '__fish_seen_subcommand_from config' -a 'ls list' -d 'List configs' +complete -c docker -f -n '__fish_seen_subcommand_from config' -a 'rm remove' -d 'Remove one or more configs' # container complete -c docker -f -n '__fish_docker_no_subcommand' -a container -d 'Manage containers' @@ -192,13 +192,13 @@ complete -c docker -f -n '__fish_seen_subcommand_from container' -a export -d 'E complete -c docker -f -n '__fish_seen_subcommand_from container' -a inspect -d 'Display detailed information on one or more containers' complete -c docker -f -n '__fish_seen_subcommand_from container' -a kill -d 'Kill one or more running containers' complete -c docker -f -n '__fish_seen_subcommand_from container' -a logs -d 'Fetch the logs of a container' -complete -c docker -f -n '__fish_seen_subcommand_from container' -a ls -d 'List containers' +complete -c docker -f -n '__fish_seen_subcommand_from container' -a 'ls list' -d 'List containers' complete -c docker -f -n '__fish_seen_subcommand_from container' -a pause -d 'Pause all processes within one or more containers' complete -c docker -f -n '__fish_seen_subcommand_from container' -a port -d 'List port mappings or a specific mapping for the container' complete -c docker -f -n '__fish_seen_subcommand_from container' -a prune -d 'Remove all stopped containers' complete -c docker -f -n '__fish_seen_subcommand_from container' -a rename -d 'Rename a container' complete -c docker -f -n '__fish_seen_subcommand_from container' -a restart -d 'Restart one or more containers' -complete -c docker -f -n '__fish_seen_subcommand_from container' -a rm -d 'Remove one or more containers' +complete -c docker -f -n '__fish_seen_subcommand_from container' -a 'rm remove' -d 'Remove one or more containers' complete -c docker -f -n '__fish_seen_subcommand_from container' -a run -d 'Run a command in a new container' complete -c docker -f -n '__fish_seen_subcommand_from container' -a start -d 'Start one or more stopped containers' complete -c docker -f -n '__fish_seen_subcommand_from container' -a stats -d 'Display a live stream of container(s) resource usage statistics' @@ -361,11 +361,11 @@ complete -c docker -f -n '__fish_seen_subcommand_from image' -a history -d 'Show complete -c docker -f -n '__fish_seen_subcommand_from image' -a import -d 'Import the contents from a tarball to create a filesystem image' complete -c docker -f -n '__fish_seen_subcommand_from image' -a inspect -d 'Display detailed information on one or more images' complete -c docker -f -n '__fish_seen_subcommand_from image' -a load -d 'Load an image from a tar archive or STDIN' -complete -c docker -f -n '__fish_seen_subcommand_from image' -a ls -d 'List images' +complete -c docker -f -n '__fish_seen_subcommand_from image' -a 'ls list' -d 'List images' complete -c docker -f -n '__fish_seen_subcommand_from image' -a prune -d 'Remove unused images' complete -c docker -f -n '__fish_seen_subcommand_from image' -a pull -d 'Pull an image or a repository from a registry' complete -c docker -f -n '__fish_seen_subcommand_from image' -a push -d 'Push an image or a repository to a registry' -complete -c docker -f -n '__fish_seen_subcommand_from image' -a rm -d 'Remove one or more images' +complete -c docker -f -n '__fish_seen_subcommand_from image' -a 'rm remove' -d 'Remove one or more images' complete -c docker -f -n '__fish_seen_subcommand_from image' -a save -d 'Save one or more images to a tar archive (streamed to STDOUT by default)' complete -c docker -f -n '__fish_seen_subcommand_from image' -a tag -d 'Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE' @@ -450,10 +450,10 @@ complete -c docker -A -f -n '__fish_seen_subcommand_from network inspect' -a '(_ complete -c docker -f -n '__fish_docker_no_subcommand' -a node -d 'Manage Swarm nodes' complete -c docker -f -n '__fish_seen_subcommand_from node' -a demote -d 'Demote one or more nodes from manager in the swarm' complete -c docker -f -n '__fish_seen_subcommand_from node' -a inspect -d 'Display detailed information on one or more nodes' -complete -c docker -f -n '__fish_seen_subcommand_from node' -a ls -d 'List nodes in the swarm' +complete -c docker -f -n '__fish_seen_subcommand_from node' -a 'ls list' -d 'List nodes in the swarm' complete -c docker -f -n '__fish_seen_subcommand_from node' -a promote -d 'Promote one or more nodes to manager in the swarm' complete -c docker -f -n '__fish_seen_subcommand_from node' -a ps -d 'List tasks running on one or more nodes, defaults to current node' -complete -c docker -f -n '__fish_seen_subcommand_from node' -a rm -d 'Remove one or more nodes from the swarm' +complete -c docker -f -n '__fish_seen_subcommand_from node' -a 'rm remove' -d 'Remove one or more nodes from the swarm' complete -c docker -f -n '__fish_seen_subcommand_from node' -a update -d 'Update a node' # plugin @@ -463,9 +463,9 @@ complete -c docker -f -n '__fish_seen_subcommand_from plugin' -a disable -d 'Dis complete -c docker -f -n '__fish_seen_subcommand_from plugin' -a enable -d 'Enable a plugin' complete -c docker -f -n '__fish_seen_subcommand_from plugin' -a inspect -d 'Display detailed information on one or more plugins' complete -c docker -f -n '__fish_seen_subcommand_from plugin' -a install -d 'Install a plugin' -complete -c docker -f -n '__fish_seen_subcommand_from plugin' -a ls -d 'List plugins' +complete -c docker -f -n '__fish_seen_subcommand_from plugin' -a'ls list' -d 'List plugins' complete -c docker -f -n '__fish_seen_subcommand_from plugin' -a push -d 'Push a plugin to a registry' -complete -c docker -f -n '__fish_seen_subcommand_from plugin' -a rm -d 'Remove one or more plugins' +complete -c docker -f -n '__fish_seen_subcommand_from plugin' -a 'rm remove' -d 'Remove one or more plugins' complete -c docker -f -n '__fish_seen_subcommand_from plugin' -a set -d 'Change settings for a plugin' complete -c docker -f -n '__fish_seen_subcommand_from plugin' -a upgrade -d 'Upgrade an existing plugin' @@ -514,7 +514,7 @@ complete -c docker -f -n '__fish_seen_subcommand_from restart' -s t -l time -d ' complete -c docker -f -n '__fish_seen_subcommand_from restart' -a '(__fish_print_docker_containers running)' -d "Container" # rm -complete -c docker -f -n '__fish_docker_no_subcommand' -a rm -d 'Remove one or more containers' +complete -c docker -f -n '__fish_docker_no_subcommand' -a 'rm remove' -d 'Remove one or more containers' complete -c docker -f -n '__fish_seen_subcommand_from rm' -s f -l force -d 'Force the removal of a running container (uses SIGKILL)' complete -c docker -f -n '__fish_seen_subcommand_from rm' -l help -d 'Print usage' complete -c docker -f -n '__fish_seen_subcommand_from rm' -s l -l link -d 'Remove the specified link and not the underlying container' @@ -589,8 +589,8 @@ complete -c docker -f -n '__fish_seen_subcommand_from save' -a '(__fish_print_do complete -c docker -f -n '__fish_docker_no_subcommand' -a secret -d 'Manage Docker secrets' complete -c docker -f -n '__fish_seen_subcommand_from secret' -a create -d 'Create a secret from a file or STDIN as content' complete -c docker -f -n '__fish_seen_subcommand_from secret' -a inspect -d 'Display detailed information on one or more secrets' -complete -c docker -f -n '__fish_seen_subcommand_from secret' -a ls -d 'List secrets' -complete -c docker -f -n '__fish_seen_subcommand_from secret' -a rm -d 'Remove one or more secrets' +complete -c docker -f -n '__fish_seen_subcommand_from secret' -a 'ls list' -d 'List secrets' +complete -c docker -f -n '__fish_seen_subcommand_from secret' -a 'rm remove' -d 'Remove one or more secrets' # search complete -c docker -f -n '__fish_docker_no_subcommand' -a search -d 'Search for an image on the registry (defaults to the Docker Hub)' @@ -604,9 +604,9 @@ complete -c docker -f -n '__fish_docker_no_subcommand' -a service -d 'Manage ser complete -c docker -f -n '__fish_seen_subcommand_from service' -a create -d 'Create a new service' complete -c docker -f -n '__fish_seen_subcommand_from service' -a inspect -d 'Display detailed information on one or more services' complete -c docker -f -n '__fish_seen_subcommand_from service' -a logs -d 'Fetch the logs of a service or task' -complete -c docker -f -n '__fish_seen_subcommand_from service' -a ls -d 'List services' +complete -c docker -f -n '__fish_seen_subcommand_from service' -a 'ls list' -d 'List services' complete -c docker -f -n '__fish_seen_subcommand_from service' -a ps -d 'List the tasks of one or more services' -complete -c docker -f -n '__fish_seen_subcommand_from service' -a rm -d 'Remove one or more services' +complete -c docker -f -n '__fish_seen_subcommand_from service' -a 'rm remove' -d 'Remove one or more services' complete -c docker -f -n '__fish_seen_subcommand_from service' -a rollback -d 'Revert changes to a service\'s configuration' complete -c docker -f -n '__fish_seen_subcommand_from service' -a scale -d ' Scale one or multiple replicated services' complete -c docker -f -n '__fish_seen_subcommand_from service' -a update -d 'Update a service' @@ -699,9 +699,9 @@ complete -c docker -f -n '__fish_seen_subcommand_from version' -l help -d 'Print complete -c docker -f -n '__fish_docker_no_subcommand' -a volume -d 'Manage volumes' complete -c docker -f -n '__fish_seen_subcommand_from volume' -a create -d 'Create a volume' complete -c docker -f -n '__fish_seen_subcommand_from volume' -a inspect -d 'Display detailed information on one or more volumes' -complete -c docker -f -n '__fish_seen_subcommand_from volume' -a ls -d 'List volumes' +complete -c docker -f -n '__fish_seen_subcommand_from volume' -a 'ls list' -d 'List volumes' complete -c docker -f -n '__fish_seen_subcommand_from volume' -a prune -d 'Remove all unused local volumes' -complete -c docker -f -n '__fish_seen_subcommand_from volume' -a rm -d 'Remove one or more volumes' +complete -c docker -f -n '__fish_seen_subcommand_from volume' -a 'rm remove' -d 'Remove one or more volumes' complete -c docker -f -n '__fish_seen_subcommand_from volume; and __fish_seen_subcommand_from rm' -a '(__fish_print_docker_volume_names)' -d 'Volume' # wait From 8fbd291ba1347752e11bb18bdc25e725be251095 Mon Sep 17 00:00:00 2001 From: Artur Juraszek Date: Sun, 8 Jul 2018 11:27:50 +0200 Subject: [PATCH 14/14] Prevent mixing subsubcommands with subcommands in fish completions E.g. `docker config create` was mistakenly matched with `docker create`, which is a completely distinct command that just happens to have a similar name. Signed-off-by: Artur Juraszek --- contrib/completion/fish/docker.fish | 807 ++++++++++++++-------------- 1 file changed, 412 insertions(+), 395 deletions(-) diff --git a/contrib/completion/fish/docker.fish b/contrib/completion/fish/docker.fish index 1cad85cab25d..aa8bfe606921 100644 --- a/contrib/completion/fish/docker.fish +++ b/contrib/completion/fish/docker.fish @@ -23,6 +23,20 @@ function __fish_docker_no_subcommand --description 'Test if docker has yet to be return 0 end +function __fish_docker_seen_subcommands --description 'Detect a subcommand' + set -l cmd (commandline -poc) + set -e cmd[1] + if not [ (count $cmd) -eq (count $argv) ] + return 1 + end + for i in (seq (count $argv)) + if [ $cmd[$i] != $argv[$i] ] + return 1 + end + end + return 0 +end + function __fish_print_docker_containers --description 'Print a list of docker containers' -a select switch $select case running @@ -85,6 +99,9 @@ function __fish_print_docker_volume_names --description 'Print a list of docker docker volume ls --format "{{.Name}}" end +# do not complete with filenames +complete -c docker -f + # common options complete -c docker -f -n '__fish_docker_no_subcommand' -l api-cors-header -d "Set CORS headers in the Engine API. Default is cors disabled" complete -c docker -f -n '__fish_docker_no_subcommand' -s b -l bridge -d 'Attach containers to a pre-existing network bridge' @@ -126,310 +143,310 @@ complete -c docker -f -n '__fish_docker_no_subcommand' -s v -l version -d 'Print # subcommands # attach complete -c docker -f -n '__fish_docker_no_subcommand' -a attach -d 'Attach local standard input, output, and error streams to a running container' -complete -c docker -f -n '__fish_seen_subcommand_from attach' -l detach-keys -d 'Override the key sequence for detaching a container' -complete -c docker -f -n '__fish_seen_subcommand_from attach' -l help -d 'Print usage' -complete -c docker -f -n '__fish_seen_subcommand_from attach' -l no-stdin -d 'Do not attach STDIN' -complete -c docker -f -n '__fish_seen_subcommand_from attach' -l sig-proxy -d 'Proxy all received signals to the process' -complete -c docker -f -n '__fish_seen_subcommand_from attach' -a '(__fish_print_docker_containers running)' -d "Container" +complete -c docker -f -n '__fish_docker_seen_subcommands attach' -l detach-keys -d 'Override the key sequence for detaching a container' +complete -c docker -f -n '__fish_docker_seen_subcommands attach' -l help -d 'Print usage' +complete -c docker -f -n '__fish_docker_seen_subcommands attach' -l no-stdin -d 'Do not attach STDIN' +complete -c docker -f -n '__fish_docker_seen_subcommands attach' -l sig-proxy -d 'Proxy all received signals to the process' +complete -c docker -f -n '__fish_docker_seen_subcommands attach' -a '(__fish_print_docker_containers running)' -d "Container" # build complete -c docker -f -n '__fish_docker_no_subcommand' -a build -d 'Build an image from a Dockerfile' -complete -c docker -f -n '__fish_seen_subcommand_from build' -l add-host -d 'Add a custom host-to-IP mapping (host:ip)' -complete -c docker -f -n '__fish_seen_subcommand_from build' -l build-arg -d 'Set build-time variables' -complete -c docker -f -n '__fish_seen_subcommand_from build' -l cache-from -d 'Images to consider as cache sources' -complete -c docker -f -n '__fish_seen_subcommand_from build' -l cgroup-parent -d 'Optional parent cgroup for the container' -complete -c docker -f -n '__fish_seen_subcommand_from build' -l compress -d 'Compress the build context using gzip' -complete -c docker -f -n '__fish_seen_subcommand_from build' -l cpu-period -d 'Limit the CPU CFS (Completely Fair Scheduler) period' -complete -c docker -f -n '__fish_seen_subcommand_from build' -l cpu-quota -d 'Limit the CPU CFS (Completely Fair Scheduler) quota' -complete -c docker -f -n '__fish_seen_subcommand_from build' -s c -l cpu-shares -d 'CPU shares (relative weight)' -complete -c docker -f -n '__fish_seen_subcommand_from build' -l cpuset-cpus -d 'CPUs in which to allow execution (0-3, 0,1)' -complete -c docker -f -n '__fish_seen_subcommand_from build' -l cpuset-mems -d 'MEMs in which to allow execution (0-3, 0,1)' -complete -c docker -f -n '__fish_seen_subcommand_from build' -l disable-content-trust -d 'Skip image verification' -complete -c docker -f -n '__fish_seen_subcommand_from build' -s f -l file -d "Name of the Dockerfile (Default is ‘PATH/Dockerfile’)" -complete -c docker -f -n '__fish_seen_subcommand_from build' -l force-rm -d 'Always remove intermediate containers' -complete -c docker -f -n '__fish_seen_subcommand_from build' -l help -d 'Print usage' -complete -c docker -f -n '__fish_seen_subcommand_from build' -l iddfile -d 'Write the image ID to the file' -complete -c docker -f -n '__fish_seen_subcommand_from build' -l isolation -d 'Container isolation technology' -complete -c docker -f -n '__fish_seen_subcommand_from build' -l label -d 'Set metadata for an image' -complete -c docker -f -n '__fish_seen_subcommand_from build' -s m -l memory -d 'Memory limit' -complete -c docker -f -n '__fish_seen_subcommand_from build' -l memory-swap -d 'Swap limit equal to memory plus swap: ‘-1’ to enable unlimited swap' -complete -c docker -f -n '__fish_seen_subcommand_from build' -l network -d 'Set the networking mode for the RUN instructions during build' -complete -c docker -f -n '__fish_seen_subcommand_from build' -l no-cache -d 'Do not use cache when building the image' -complete -c docker -f -n '__fish_seen_subcommand_from build' -l pull -d 'Always attempt to pull a newer version of the image' -complete -c docker -f -n '__fish_seen_subcommand_from build' -s q -l quiet -d 'Suppress the build output and print image ID on success' -complete -c docker -f -n '__fish_seen_subcommand_from build' -l rm -d 'Remove intermediate containers after a successful build' -complete -c docker -f -n '__fish_seen_subcommand_from build' -l security-opt -d 'Security options' -complete -c docker -f -n '__fish_seen_subcommand_from build' -l shm-size -d 'Size of /dev/shm' -complete -c docker -f -n '__fish_seen_subcommand_from build' -s t -l tag -d 'Name and optionally a tag in the ‘name:tag’ format' -complete -c docker -f -n '__fish_seen_subcommand_from build' -l target -d 'Set the target build stage to build' -complete -c docker -f -n '__fish_seen_subcommand_from build' -l ulimit -d 'Ulimit options' +complete -c docker -f -n '__fish_docker_seen_subcommands build' -l add-host -d 'Add a custom host-to-IP mapping (host:ip)' +complete -c docker -f -n '__fish_docker_seen_subcommands build' -l build-arg -d 'Set build-time variables' +complete -c docker -f -n '__fish_docker_seen_subcommands build' -l cache-from -d 'Images to consider as cache sources' +complete -c docker -f -n '__fish_docker_seen_subcommands build' -l cgroup-parent -d 'Optional parent cgroup for the container' +complete -c docker -f -n '__fish_docker_seen_subcommands build' -l compress -d 'Compress the build context using gzip' +complete -c docker -f -n '__fish_docker_seen_subcommands build' -l cpu-period -d 'Limit the CPU CFS (Completely Fair Scheduler) period' +complete -c docker -f -n '__fish_docker_seen_subcommands build' -l cpu-quota -d 'Limit the CPU CFS (Completely Fair Scheduler) quota' +complete -c docker -f -n '__fish_docker_seen_subcommands build' -s c -l cpu-shares -d 'CPU shares (relative weight)' +complete -c docker -f -n '__fish_docker_seen_subcommands build' -l cpuset-cpus -d 'CPUs in which to allow execution (0-3, 0,1)' +complete -c docker -f -n '__fish_docker_seen_subcommands build' -l cpuset-mems -d 'MEMs in which to allow execution (0-3, 0,1)' +complete -c docker -f -n '__fish_docker_seen_subcommands build' -l disable-content-trust -d 'Skip image verification' +complete -c docker -f -n '__fish_docker_seen_subcommands build' -s f -l file -d "Name of the Dockerfile (Default is ‘PATH/Dockerfile’)" +complete -c docker -f -n '__fish_docker_seen_subcommands build' -l force-rm -d 'Always remove intermediate containers' +complete -c docker -f -n '__fish_docker_seen_subcommands build' -l help -d 'Print usage' +complete -c docker -f -n '__fish_docker_seen_subcommands build' -l iddfile -d 'Write the image ID to the file' +complete -c docker -f -n '__fish_docker_seen_subcommands build' -l isolation -d 'Container isolation technology' +complete -c docker -f -n '__fish_docker_seen_subcommands build' -l label -d 'Set metadata for an image' +complete -c docker -f -n '__fish_docker_seen_subcommands build' -s m -l memory -d 'Memory limit' +complete -c docker -f -n '__fish_docker_seen_subcommands build' -l memory-swap -d 'Swap limit equal to memory plus swap: ‘-1’ to enable unlimited swap' +complete -c docker -f -n '__fish_docker_seen_subcommands build' -l network -d 'Set the networking mode for the RUN instructions during build' +complete -c docker -f -n '__fish_docker_seen_subcommands build' -l no-cache -d 'Do not use cache when building the image' +complete -c docker -f -n '__fish_docker_seen_subcommands build' -l pull -d 'Always attempt to pull a newer version of the image' +complete -c docker -f -n '__fish_docker_seen_subcommands build' -s q -l quiet -d 'Suppress the build output and print image ID on success' +complete -c docker -f -n '__fish_docker_seen_subcommands build' -l rm -d 'Remove intermediate containers after a successful build' +complete -c docker -f -n '__fish_docker_seen_subcommands build' -l security-opt -d 'Security options' +complete -c docker -f -n '__fish_docker_seen_subcommands build' -l shm-size -d 'Size of /dev/shm' +complete -c docker -f -n '__fish_docker_seen_subcommands build' -s t -l tag -d 'Name and optionally a tag in the ‘name:tag’ format' +complete -c docker -f -n '__fish_docker_seen_subcommands build' -l target -d 'Set the target build stage to build' +complete -c docker -f -n '__fish_docker_seen_subcommands build' -l ulimit -d 'Ulimit options' # commit complete -c docker -f -n '__fish_docker_no_subcommand' -a commit -d "Create a new image from a container's changes" -complete -c docker -f -n '__fish_seen_subcommand_from commit' -s a -l author -d 'Author (e.g., "John Hannibal Smith ")' -complete -c docker -f -n '__fish_seen_subcommand_from commit' -s c -l change -d 'Apply Dockerfile instruction to the created image' -complete -c docker -f -n '__fish_seen_subcommand_from commit' -l help -d 'Print usage' -complete -c docker -f -n '__fish_seen_subcommand_from commit' -s m -l message -d 'Commit message' -complete -c docker -f -n '__fish_seen_subcommand_from commit' -s p -l pause -d 'Pause container during commit' -complete -c docker -f -n '__fish_seen_subcommand_from commit' -a '(__fish_print_docker_containers all)' -d "Container" +complete -c docker -f -n '__fish_docker_seen_subcommands commit' -s a -l author -d 'Author (e.g., "John Hannibal Smith ")' +complete -c docker -f -n '__fish_docker_seen_subcommands commit' -s c -l change -d 'Apply Dockerfile instruction to the created image' +complete -c docker -f -n '__fish_docker_seen_subcommands commit' -l help -d 'Print usage' +complete -c docker -f -n '__fish_docker_seen_subcommands commit' -s m -l message -d 'Commit message' +complete -c docker -f -n '__fish_docker_seen_subcommands commit' -s p -l pause -d 'Pause container during commit' +complete -c docker -f -n '__fish_docker_seen_subcommands commit' -a '(__fish_print_docker_containers all)' -d "Container" # config complete -c docker -f -n '__fish_docker_no_subcommand' -a config -d "Manage Docker configs" -complete -c docker -f -n '__fish_seen_subcommand_from config' -a create -d 'Create a config from a file or STDIN' -complete -c docker -f -n '__fish_seen_subcommand_from config' -a inspect -d 'Display detailed information on one or more configs' -complete -c docker -f -n '__fish_seen_subcommand_from config' -a 'ls list' -d 'List configs' -complete -c docker -f -n '__fish_seen_subcommand_from config' -a 'rm remove' -d 'Remove one or more configs' +complete -c docker -f -n '__fish_docker_seen_subcommands config' -a create -d 'Create a config from a file or STDIN' +complete -c docker -f -n '__fish_docker_seen_subcommands config' -a inspect -d 'Display detailed information on one or more configs' +complete -c docker -f -n '__fish_docker_seen_subcommands config' -a 'ls list' -d 'List configs' +complete -c docker -f -n '__fish_docker_seen_subcommands config' -a 'rm remove' -d 'Remove one or more configs' # container complete -c docker -f -n '__fish_docker_no_subcommand' -a container -d 'Manage containers' -complete -c docker -f -n '__fish_seen_subcommand_from container' -a attach -d 'Attach local standard input, output, and error streams to a running container' -complete -c docker -f -n '__fish_seen_subcommand_from container' -a commit -d 'Create a new image from a container\'s changes' -complete -c docker -f -n '__fish_seen_subcommand_from container' -a cp -d 'Copy files/folders between a container and the local filesystem' -complete -c docker -f -n '__fish_seen_subcommand_from container' -a create -d 'Create a new container' -complete -c docker -f -n '__fish_seen_subcommand_from container' -a diff -d 'Inspect changes to files or directories on a container\'s filesystem' -complete -c docker -f -n '__fish_seen_subcommand_from container' -a exec -d 'Run a command in a running container' -complete -c docker -f -n '__fish_seen_subcommand_from container' -a export -d 'Export a container\'s filesystem as a tar archive' -complete -c docker -f -n '__fish_seen_subcommand_from container' -a inspect -d 'Display detailed information on one or more containers' -complete -c docker -f -n '__fish_seen_subcommand_from container' -a kill -d 'Kill one or more running containers' -complete -c docker -f -n '__fish_seen_subcommand_from container' -a logs -d 'Fetch the logs of a container' -complete -c docker -f -n '__fish_seen_subcommand_from container' -a 'ls list' -d 'List containers' -complete -c docker -f -n '__fish_seen_subcommand_from container' -a pause -d 'Pause all processes within one or more containers' -complete -c docker -f -n '__fish_seen_subcommand_from container' -a port -d 'List port mappings or a specific mapping for the container' -complete -c docker -f -n '__fish_seen_subcommand_from container' -a prune -d 'Remove all stopped containers' -complete -c docker -f -n '__fish_seen_subcommand_from container' -a rename -d 'Rename a container' -complete -c docker -f -n '__fish_seen_subcommand_from container' -a restart -d 'Restart one or more containers' -complete -c docker -f -n '__fish_seen_subcommand_from container' -a 'rm remove' -d 'Remove one or more containers' -complete -c docker -f -n '__fish_seen_subcommand_from container' -a run -d 'Run a command in a new container' -complete -c docker -f -n '__fish_seen_subcommand_from container' -a start -d 'Start one or more stopped containers' -complete -c docker -f -n '__fish_seen_subcommand_from container' -a stats -d 'Display a live stream of container(s) resource usage statistics' -complete -c docker -f -n '__fish_seen_subcommand_from container' -a stop -d 'Stop one or more running containers' -complete -c docker -f -n '__fish_seen_subcommand_from container' -a top -d ' Display the running processes of a container' -complete -c docker -f -n '__fish_seen_subcommand_from container' -a unpause -d 'Unpause all processes within one or more containers' -complete -c docker -f -n '__fish_seen_subcommand_from container' -a update -d 'Update configuration of one or more containers' -complete -c docker -f -n '__fish_seen_subcommand_from container' -a wait -d 'Block until one or more containers stop, then print their exit codes' +complete -c docker -f -n '__fish_docker_seen_subcommands container' -a attach -d 'Attach local standard input, output, and error streams to a running container' +complete -c docker -f -n '__fish_docker_seen_subcommands container' -a commit -d 'Create a new image from a container\'s changes' +complete -c docker -f -n '__fish_docker_seen_subcommands container' -a cp -d 'Copy files/folders between a container and the local filesystem' +complete -c docker -f -n '__fish_docker_seen_subcommands container' -a create -d 'Create a new container' +complete -c docker -f -n '__fish_docker_seen_subcommands container' -a diff -d 'Inspect changes to files or directories on a container\'s filesystem' +complete -c docker -f -n '__fish_docker_seen_subcommands container' -a exec -d 'Run a command in a running container' +complete -c docker -f -n '__fish_docker_seen_subcommands container' -a export -d 'Export a container\'s filesystem as a tar archive' +complete -c docker -f -n '__fish_docker_seen_subcommands container' -a inspect -d 'Display detailed information on one or more containers' +complete -c docker -f -n '__fish_docker_seen_subcommands container' -a kill -d 'Kill one or more running containers' +complete -c docker -f -n '__fish_docker_seen_subcommands container' -a logs -d 'Fetch the logs of a container' +complete -c docker -f -n '__fish_docker_seen_subcommands container' -a 'ls list' -d 'List containers' +complete -c docker -f -n '__fish_docker_seen_subcommands container' -a pause -d 'Pause all processes within one or more containers' +complete -c docker -f -n '__fish_docker_seen_subcommands container' -a port -d 'List port mappings or a specific mapping for the container' +complete -c docker -f -n '__fish_docker_seen_subcommands container' -a prune -d 'Remove all stopped containers' +complete -c docker -f -n '__fish_docker_seen_subcommands container' -a rename -d 'Rename a container' +complete -c docker -f -n '__fish_docker_seen_subcommands container' -a restart -d 'Restart one or more containers' +complete -c docker -f -n '__fish_docker_seen_subcommands container' -a 'rm remove' -d 'Remove one or more containers' +complete -c docker -f -n '__fish_docker_seen_subcommands container' -a run -d 'Run a command in a new container' +complete -c docker -f -n '__fish_docker_seen_subcommands container' -a start -d 'Start one or more stopped containers' +complete -c docker -f -n '__fish_docker_seen_subcommands container' -a stats -d 'Display a live stream of container(s) resource usage statistics' +complete -c docker -f -n '__fish_docker_seen_subcommands container' -a stop -d 'Stop one or more running containers' +complete -c docker -f -n '__fish_docker_seen_subcommands container' -a top -d ' Display the running processes of a container' +complete -c docker -f -n '__fish_docker_seen_subcommands container' -a unpause -d 'Unpause all processes within one or more containers' +complete -c docker -f -n '__fish_docker_seen_subcommands container' -a update -d 'Update configuration of one or more containers' +complete -c docker -f -n '__fish_docker_seen_subcommands container' -a wait -d 'Block until one or more containers stop, then print their exit codes' # cp complete -c docker -f -n '__fish_docker_no_subcommand' -a cp -d "Copy files/folders between a container and the local filesystem" -complete -c docker -f -n '__fish_seen_subcommand_from cp' -s a -l archive -d 'Archive mode (copy all uid/gid information)' -complete -c docker -f -n '__fish_seen_subcommand_from cp' -s L -l follow-link -d 'Always follow symbol link in SRC_PATH' -complete -c docker -f -n '__fish_seen_subcommand_from cp' -l help -d 'Print usage' +complete -c docker -f -n '__fish_docker_seen_subcommands cp' -s a -l archive -d 'Archive mode (copy all uid/gid information)' +complete -c docker -f -n '__fish_docker_seen_subcommands cp' -s L -l follow-link -d 'Always follow symbol link in SRC_PATH' +complete -c docker -f -n '__fish_docker_seen_subcommands cp' -l help -d 'Print usage' # create complete -c docker -f -n '__fish_docker_no_subcommand' -a create -d 'Create a new container' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l add-host -d 'Add a custom host-to-IP mapping (host:ip)' -complete -c docker -f -n '__fish_seen_subcommand_from create' -s a -l attach -d 'Attach to STDIN, STDOUT or STDERR.' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l blkio-weight -d 'Block IO (relative weight), between 10 and 1000, or 0 to disable (default 0)' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l blkio-weight-device -d 'Block IO weight (relative device weight)' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l cap-add -d 'Add Linux capabilities' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l cap-drop -d 'Drop Linux capabilities' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l cgroupns -d 'Cgroup namespace mode to use' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l cgroup-parent -d 'Optional parent cgroup for the container' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l cidfile -d 'Write the container ID to the file' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l cpu-count -d 'CPU count (Windows only)' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l cpu-percent -d 'CPU percent (Windows only)' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l cpu-period -d 'Limit CPU CFS (Completely Fair Scheduler) period' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l cpu-quota -d 'Limit CPU CFS (Completely Fair Scheduler) quota' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l cpu-rt-period -d 'Limit CPU real-time period in microseconds' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l cpu-rt-runtime -d 'Limit CPU real-time runtime in microseconds' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l cpu-shares -d 'CPU shares (relative weight)' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l cpus -d 'Number of CPUs' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l cpuset-cpus -d 'CPUs in which to allow execution (0-3, 0,1)' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l cpuset-mems -d 'MEMs in which to allow execution (0-3, 0,1)' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l device -d 'Add a host device to the container (e.g. --device=/dev/sdc:/dev/xvdc:rwm)' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l device-cgroup-rule -d 'Add a rule to the cgroup allowed devices list' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l device-read-bps -d 'Limit read rate (bytes per second) from a device' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l device-read-iops -d 'Limit read rate (IO per second) from a device' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l device-write-bps -d 'Limit write rate (bytes per second) to a device' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l device-write-iops -d 'Limit write rate (IO per second) to a device' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l disable-content-trust -d 'Skip image verification' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l dns -d 'Set custom DNS servers' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l dns-opt -d 'Set DNS options' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l dns-option -d 'Set DNS options' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l dns-search -d 'Set custom DNS search domains' -complete -c docker -f -n '__fish_seen_subcommand_from create' -s e -l env -d 'Set environment variables' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l entrypoint -d 'Overwrite the default ENTRYPOINT of the image' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l env-file -d 'Read in a line delimited file of environment variables' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l expose -d 'Expose a port or a range of ports' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l group-add -d 'Add additional groups to join' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l health-cmd -d 'Command to run to check health' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l health-interval -d 'Time between running the check (ms|s|m|h) (default 0s)' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l health-retries -d 'Consecutive failures needed to report unhealthy' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l health-start-period -d 'Start period for the container to initialize before starting health-retries countdown (ms|s|m|h) (default 0s)' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l health-timeout -d 'Maximum time to allow one check to run (ms|s|m|h) (default 0s)' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l help -d 'Print usage' -complete -c docker -f -n '__fish_seen_subcommand_from create' -s h -l hostname -d 'Container host name' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l init -d 'Run an init inside the container that forwards signals and reaps processes' -complete -c docker -f -n '__fish_seen_subcommand_from create' -s i -l interactive -d 'Keep STDIN open even if not attached' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l io-maxbandwidth -d 'Maximum IO bandwidth limit for the system drive (Windows only)' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l io-maxiops -d 'Maximum IOps limit for the system drive (Windows only)' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l ip -d 'IPv4 address (e.g., 172.30.100.104)' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l ip6 -d 'IPv6 address (e.g., 2001:db8::33)' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l ipc -d 'IPC mode to use' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l isolation -d 'Container isolation technology' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l kernel-memory -d 'Kernel memory limit' -complete -c docker -f -n '__fish_seen_subcommand_from create' -s l -l label -d 'Set meta data on a container' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l label-file -d 'Read in a line delimited file of labels' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l link -d 'Add link to another container' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l link-local-ip -d 'Container IPv4/IPv6 link-local addresses' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l log-driver -d 'Logging driver for the container' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l log-opt -d 'Log driver options' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l mac-address -d 'Container MAC address (e.g., 92:d0:c6:0a:29:33)' -complete -c docker -f -n '__fish_seen_subcommand_from create' -s m -l memory -d 'Memory limit' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l memory-reservation -d 'Memory soft limit' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l memory-swap -d 'Swap limit equal to memory plus swap: ‘-1’ to enable unlimited swap' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l memory-swappiness -d 'Tune container memory swappiness (0 to 100)' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l mount -d 'Attach a filesystem mount to the container' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l name -d 'Assign a name to the container' -complete -c docker -f -n '__fish_seen_subcommand_from create' -s net -l network -d 'Connect a container to a network' -complete -c docker -f -n '__fish_seen_subcommand_from create' -s net-alias -l network-alias -d 'Add network-scoped alias for the container' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l no-healthcheck -d 'Disable any container-specified HEALTHCHECK' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l oom-kill-disable -d 'Disable OOM Killer' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l oom-score-adj -d 'Tune host’s OOM preferences (-1000 to 1000)' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l pid -d 'PID namespace to use' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l pids-limit -d 'Tune container pids limit (set -1 for unlimited )' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l privileged -d 'Give extended privileges to this container' -complete -c docker -f -n '__fish_seen_subcommand_from create' -s p -l publish -d "Publish a container’s port(s) to the host" -complete -c docker -f -n '__fish_seen_subcommand_from create' -s P -l publish-all -d 'Publish all exposed ports to random ports' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l read-only -d "Mount the container's root filesystem as read only" -complete -c docker -f -n '__fish_seen_subcommand_from create' -l restart -d 'Restart policy to apply when a container exits' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l rm -d 'Automatically remove the container when it exits' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l runtime -d 'Runtime to use for this container' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l security-opt -d 'Security Options' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l shm-size -d 'Size of /dev/shm' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l stop-signal -d 'Signal to stop a container' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l stop-timeout -d 'Timeout (in seconds) to stop a container' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l storage-opt -d 'Storage driver options for the container' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l sysctl -d 'Sysctl options' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l tmpfs -d 'Mount a tmpfs directory' -complete -c docker -f -n '__fish_seen_subcommand_from create' -s t -l tty -d 'Allocate a pseudo-TTY' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l ulimit -d 'Ulimit options' -complete -c docker -f -n '__fish_seen_subcommand_from create' -s u -l user -d ' Username or UID (format: [:])' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l userns -d 'User namespace to use' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l uts -d 'UTS namespace to use' -complete -c docker -f -n '__fish_seen_subcommand_from create' -s v -l volume -d 'Bind mount a volume' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l volume-driver -d 'Optional volume driver for the container' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l volumes-from -d 'Mount volumes from the specified container(s)' -complete -c docker -f -n '__fish_seen_subcommand_from create' -s w -l workdir -d 'Working directory inside the container' -complete -c docker -f -n '__fish_seen_subcommand_from create' -a '(__fish_print_docker_images)' -d "Image" +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l add-host -d 'Add a custom host-to-IP mapping (host:ip)' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -s a -l attach -d 'Attach to STDIN, STDOUT or STDERR.' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l blkio-weight -d 'Block IO (relative weight), between 10 and 1000, or 0 to disable (default 0)' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l blkio-weight-device -d 'Block IO weight (relative device weight)' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l cap-add -d 'Add Linux capabilities' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l cap-drop -d 'Drop Linux capabilities' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l cgroupns -d 'Cgroup namespace mode to use' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l cgroup-parent -d 'Optional parent cgroup for the container' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l cidfile -d 'Write the container ID to the file' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l cpu-count -d 'CPU count (Windows only)' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l cpu-percent -d 'CPU percent (Windows only)' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l cpu-period -d 'Limit CPU CFS (Completely Fair Scheduler) period' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l cpu-quota -d 'Limit CPU CFS (Completely Fair Scheduler) quota' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l cpu-rt-period -d 'Limit CPU real-time period in microseconds' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l cpu-rt-runtime -d 'Limit CPU real-time runtime in microseconds' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l cpu-shares -d 'CPU shares (relative weight)' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l cpus -d 'Number of CPUs' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l cpuset-cpus -d 'CPUs in which to allow execution (0-3, 0,1)' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l cpuset-mems -d 'MEMs in which to allow execution (0-3, 0,1)' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l device -d 'Add a host device to the container (e.g. --device=/dev/sdc:/dev/xvdc:rwm)' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l device-cgroup-rule -d 'Add a rule to the cgroup allowed devices list' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l device-read-bps -d 'Limit read rate (bytes per second) from a device' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l device-read-iops -d 'Limit read rate (IO per second) from a device' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l device-write-bps -d 'Limit write rate (bytes per second) to a device' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l device-write-iops -d 'Limit write rate (IO per second) to a device' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l disable-content-trust -d 'Skip image verification' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l dns -d 'Set custom DNS servers' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l dns-opt -d 'Set DNS options' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l dns-option -d 'Set DNS options' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l dns-search -d 'Set custom DNS search domains' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -s e -l env -d 'Set environment variables' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l entrypoint -d 'Overwrite the default ENTRYPOINT of the image' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l env-file -d 'Read in a line delimited file of environment variables' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l expose -d 'Expose a port or a range of ports' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l group-add -d 'Add additional groups to join' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l health-cmd -d 'Command to run to check health' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l health-interval -d 'Time between running the check (ms|s|m|h) (default 0s)' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l health-retries -d 'Consecutive failures needed to report unhealthy' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l health-start-period -d 'Start period for the container to initialize before starting health-retries countdown (ms|s|m|h) (default 0s)' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l health-timeout -d 'Maximum time to allow one check to run (ms|s|m|h) (default 0s)' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l help -d 'Print usage' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -s h -l hostname -d 'Container host name' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l init -d 'Run an init inside the container that forwards signals and reaps processes' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -s i -l interactive -d 'Keep STDIN open even if not attached' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l io-maxbandwidth -d 'Maximum IO bandwidth limit for the system drive (Windows only)' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l io-maxiops -d 'Maximum IOps limit for the system drive (Windows only)' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l ip -d 'IPv4 address (e.g., 172.30.100.104)' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l ip6 -d 'IPv6 address (e.g., 2001:db8::33)' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l ipc -d 'IPC mode to use' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l isolation -d 'Container isolation technology' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l kernel-memory -d 'Kernel memory limit' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -s l -l label -d 'Set meta data on a container' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l label-file -d 'Read in a line delimited file of labels' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l link -d 'Add link to another container' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l link-local-ip -d 'Container IPv4/IPv6 link-local addresses' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l log-driver -d 'Logging driver for the container' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l log-opt -d 'Log driver options' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l mac-address -d 'Container MAC address (e.g., 92:d0:c6:0a:29:33)' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -s m -l memory -d 'Memory limit' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l memory-reservation -d 'Memory soft limit' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l memory-swap -d 'Swap limit equal to memory plus swap: ‘-1’ to enable unlimited swap' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l memory-swappiness -d 'Tune container memory swappiness (0 to 100)' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l mount -d 'Attach a filesystem mount to the container' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l name -d 'Assign a name to the container' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -s net -l network -d 'Connect a container to a network' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -s net-alias -l network-alias -d 'Add network-scoped alias for the container' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l no-healthcheck -d 'Disable any container-specified HEALTHCHECK' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l oom-kill-disable -d 'Disable OOM Killer' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l oom-score-adj -d 'Tune host’s OOM preferences (-1000 to 1000)' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l pid -d 'PID namespace to use' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l pids-limit -d 'Tune container pids limit (set -1 for unlimited )' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l privileged -d 'Give extended privileges to this container' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -s p -l publish -d "Publish a container’s port(s) to the host" +complete -c docker -f -n '__fish_docker_seen_subcommands create' -s P -l publish-all -d 'Publish all exposed ports to random ports' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l read-only -d "Mount the container's root filesystem as read only" +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l restart -d 'Restart policy to apply when a container exits' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l rm -d 'Automatically remove the container when it exits' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l runtime -d 'Runtime to use for this container' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l security-opt -d 'Security Options' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l shm-size -d 'Size of /dev/shm' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l stop-signal -d 'Signal to stop a container' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l stop-timeout -d 'Timeout (in seconds) to stop a container' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l storage-opt -d 'Storage driver options for the container' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l sysctl -d 'Sysctl options' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l tmpfs -d 'Mount a tmpfs directory' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -s t -l tty -d 'Allocate a pseudo-TTY' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l ulimit -d 'Ulimit options' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -s u -l user -d ' Username or UID (format: [:])' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l userns -d 'User namespace to use' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l uts -d 'UTS namespace to use' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -s v -l volume -d 'Bind mount a volume' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l volume-driver -d 'Optional volume driver for the container' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l volumes-from -d 'Mount volumes from the specified container(s)' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -s w -l workdir -d 'Working directory inside the container' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -a '(__fish_print_docker_images)' -d "Image" # diff complete -c docker -f -n '__fish_docker_no_subcommand' -a diff -d "Inspect changes on a container's filesystem" -complete -c docker -f -n '__fish_seen_subcommand_from diff' -l help -d 'Print usage' -complete -c docker -f -n '__fish_seen_subcommand_from diff' -a '(__fish_print_docker_containers all)' -d "Container" +complete -c docker -f -n '__fish_docker_seen_subcommands diff' -l help -d 'Print usage' +complete -c docker -f -n '__fish_docker_seen_subcommands diff' -a '(__fish_print_docker_containers all)' -d "Container" # events complete -c docker -f -n '__fish_docker_no_subcommand' -a events -d 'Get real time events from the server' -complete -c docker -f -n '__fish_seen_subcommand_from events' -s f -l filter -d "Filter output based on conditions provided" -complete -c docker -f -n '__fish_seen_subcommand_from events' -l format -d 'Format the output using the given Go template' -complete -c docker -f -n '__fish_seen_subcommand_from events' -l help -d 'Print usage' -complete -c docker -f -n '__fish_seen_subcommand_from events' -l since -d 'Show all events created since timestamp' -complete -c docker -f -n '__fish_seen_subcommand_from events' -l until -d 'Stream events until this timestamp' +complete -c docker -f -n '__fish_docker_seen_subcommands events' -s f -l filter -d "Filter output based on conditions provided" +complete -c docker -f -n '__fish_docker_seen_subcommands events' -l format -d 'Format the output using the given Go template' +complete -c docker -f -n '__fish_docker_seen_subcommands events' -l help -d 'Print usage' +complete -c docker -f -n '__fish_docker_seen_subcommands events' -l since -d 'Show all events created since timestamp' +complete -c docker -f -n '__fish_docker_seen_subcommands events' -l until -d 'Stream events until this timestamp' # exec complete -c docker -f -n '__fish_docker_no_subcommand' -a exec -d 'Run a command in a running container' -complete -c docker -f -n '__fish_seen_subcommand_from exec' -s d -l detach -d 'Detached mode: run command in the background' -complete -c docker -f -n '__fish_seen_subcommand_from exec' -l detach-keys -d 'Override the key sequence for detaching a container' -complete -c docker -f -n '__fish_seen_subcommand_from exec' -s e -l env -d 'Set environment variables' -complete -c docker -f -n '__fish_seen_subcommand_from exec' -l help -d 'Print usage' -complete -c docker -f -n '__fish_seen_subcommand_from exec' -s i -l interactive -d 'Keep STDIN open even if not attached' -complete -c docker -f -n '__fish_seen_subcommand_from exec' -l privileged -d 'Give extended privileges to the command' -complete -c docker -f -n '__fish_seen_subcommand_from exec' -s t -l tty -d 'Allocate a pseudo-TTY' -complete -c docker -f -n '__fish_seen_subcommand_from exec' -s u -l user -d 'Username or UID (format: [:])' -complete -c docker -f -n '__fish_seen_subcommand_from exec' -s w -l workdir -d 'Working directory inside the container' -complete -c docker -f -n '__fish_seen_subcommand_from exec' -a '(__fish_print_docker_containers running)' -d "Container" +complete -c docker -f -n '__fish_docker_seen_subcommands exec' -s d -l detach -d 'Detached mode: run command in the background' +complete -c docker -f -n '__fish_docker_seen_subcommands exec' -l detach-keys -d 'Override the key sequence for detaching a container' +complete -c docker -f -n '__fish_docker_seen_subcommands exec' -s e -l env -d 'Set environment variables' +complete -c docker -f -n '__fish_docker_seen_subcommands exec' -l help -d 'Print usage' +complete -c docker -f -n '__fish_docker_seen_subcommands exec' -s i -l interactive -d 'Keep STDIN open even if not attached' +complete -c docker -f -n '__fish_docker_seen_subcommands exec' -l privileged -d 'Give extended privileges to the command' +complete -c docker -f -n '__fish_docker_seen_subcommands exec' -s t -l tty -d 'Allocate a pseudo-TTY' +complete -c docker -f -n '__fish_docker_seen_subcommands exec' -s u -l user -d 'Username or UID (format: [:])' +complete -c docker -f -n '__fish_docker_seen_subcommands exec' -s w -l workdir -d 'Working directory inside the container' +complete -c docker -f -n '__fish_docker_seen_subcommands exec' -a '(__fish_print_docker_containers running)' -d "Container" # export complete -c docker -f -n '__fish_docker_no_subcommand' -a export -d 'Stream the contents of a container as a tar archive' -complete -c docker -f -n '__fish_seen_subcommand_from export' -l help -d 'Print usage' -complete -c docker -f -n '__fish_seen_subcommand_from export' -s o -l output -d 'Write to a file, instead of STDOUT' -complete -c docker -f -n '__fish_seen_subcommand_from export' -a '(__fish_print_docker_containers all)' -d "Container" +complete -c docker -f -n '__fish_docker_seen_subcommands export' -l help -d 'Print usage' +complete -c docker -f -n '__fish_docker_seen_subcommands export' -s o -l output -d 'Write to a file, instead of STDOUT' +complete -c docker -f -n '__fish_docker_seen_subcommands export' -a '(__fish_print_docker_containers all)' -d "Container" # history complete -c docker -f -n '__fish_docker_no_subcommand' -a history -d 'Show the history of an image' -complete -c docker -f -n '__fish_seen_subcommand_from history' -l format -d 'Pretty-print images using a Go template' -complete -c docker -f -n '__fish_seen_subcommand_from history' -l help -d 'Print usage' -complete -c docker -f -n '__fish_seen_subcommand_from history' -s H -l human -d 'Print sizes and dates in human readable format' -complete -c docker -f -n '__fish_seen_subcommand_from history' -l no-trunc -d "Don't truncate output" -complete -c docker -f -n '__fish_seen_subcommand_from history' -s q -l quiet -d 'Only show image IDs' -complete -c docker -f -n '__fish_seen_subcommand_from history' -a '(__fish_print_docker_images)' -d "Image" +complete -c docker -f -n '__fish_docker_seen_subcommands history' -l format -d 'Pretty-print images using a Go template' +complete -c docker -f -n '__fish_docker_seen_subcommands history' -l help -d 'Print usage' +complete -c docker -f -n '__fish_docker_seen_subcommands history' -s H -l human -d 'Print sizes and dates in human readable format' +complete -c docker -f -n '__fish_docker_seen_subcommands history' -l no-trunc -d "Don't truncate output" +complete -c docker -f -n '__fish_docker_seen_subcommands history' -s q -l quiet -d 'Only show image IDs' +complete -c docker -f -n '__fish_docker_seen_subcommands history' -a '(__fish_print_docker_images)' -d "Image" # image complete -c docker -f -n '__fish_docker_no_subcommand' -a image -d 'Manage images' -complete -c docker -f -n '__fish_seen_subcommand_from image' -a build -d 'Build an image from a Dockerfile' -complete -c docker -f -n '__fish_seen_subcommand_from image' -a history -d 'Show the history of an image' -complete -c docker -f -n '__fish_seen_subcommand_from image' -a import -d 'Import the contents from a tarball to create a filesystem image' -complete -c docker -f -n '__fish_seen_subcommand_from image' -a inspect -d 'Display detailed information on one or more images' -complete -c docker -f -n '__fish_seen_subcommand_from image' -a load -d 'Load an image from a tar archive or STDIN' -complete -c docker -f -n '__fish_seen_subcommand_from image' -a 'ls list' -d 'List images' -complete -c docker -f -n '__fish_seen_subcommand_from image' -a prune -d 'Remove unused images' -complete -c docker -f -n '__fish_seen_subcommand_from image' -a pull -d 'Pull an image or a repository from a registry' -complete -c docker -f -n '__fish_seen_subcommand_from image' -a push -d 'Push an image or a repository to a registry' -complete -c docker -f -n '__fish_seen_subcommand_from image' -a 'rm remove' -d 'Remove one or more images' -complete -c docker -f -n '__fish_seen_subcommand_from image' -a save -d 'Save one or more images to a tar archive (streamed to STDOUT by default)' -complete -c docker -f -n '__fish_seen_subcommand_from image' -a tag -d 'Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE' +complete -c docker -f -n '__fish_docker_seen_subcommands image' -a build -d 'Build an image from a Dockerfile' +complete -c docker -f -n '__fish_docker_seen_subcommands image' -a history -d 'Show the history of an image' +complete -c docker -f -n '__fish_docker_seen_subcommands image' -a import -d 'Import the contents from a tarball to create a filesystem image' +complete -c docker -f -n '__fish_docker_seen_subcommands image' -a inspect -d 'Display detailed information on one or more images' +complete -c docker -f -n '__fish_docker_seen_subcommands image' -a load -d 'Load an image from a tar archive or STDIN' +complete -c docker -f -n '__fish_docker_seen_subcommands image' -a 'ls list' -d 'List images' +complete -c docker -f -n '__fish_docker_seen_subcommands image' -a prune -d 'Remove unused images' +complete -c docker -f -n '__fish_docker_seen_subcommands image' -a pull -d 'Pull an image or a repository from a registry' +complete -c docker -f -n '__fish_docker_seen_subcommands image' -a push -d 'Push an image or a repository to a registry' +complete -c docker -f -n '__fish_docker_seen_subcommands image' -a 'rm remove' -d 'Remove one or more images' +complete -c docker -f -n '__fish_docker_seen_subcommands image' -a save -d 'Save one or more images to a tar archive (streamed to STDOUT by default)' +complete -c docker -f -n '__fish_docker_seen_subcommands image' -a tag -d 'Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE' # images complete -c docker -f -n '__fish_docker_no_subcommand' -a images -d 'List images' -complete -c docker -f -n '__fish_seen_subcommand_from images' -s a -l all -d 'Show all images (default hides intermediate images)' -complete -c docker -f -n '__fish_seen_subcommand_from images' -l digests -d 'Show digests' -complete -c docker -f -n '__fish_seen_subcommand_from images' -s f -l filter -d 'Filter output based on conditions provided' -complete -c docker -f -n '__fish_seen_subcommand_from images' -l format -d 'Pretty-print images using a Go template' -complete -c docker -f -n '__fish_seen_subcommand_from images' -l help -d 'Print usage' -complete -c docker -f -n '__fish_seen_subcommand_from images' -l no-trunc -d "Don't truncate output" -complete -c docker -f -n '__fish_seen_subcommand_from images' -s q -l quiet -d 'Only show image IDs' -complete -c docker -f -n '__fish_seen_subcommand_from images' -a '(__fish_print_docker_repositories)' -d "Repository" +complete -c docker -f -n '__fish_docker_seen_subcommands images' -s a -l all -d 'Show all images (default hides intermediate images)' +complete -c docker -f -n '__fish_docker_seen_subcommands images' -l digests -d 'Show digests' +complete -c docker -f -n '__fish_docker_seen_subcommands images' -s f -l filter -d 'Filter output based on conditions provided' +complete -c docker -f -n '__fish_docker_seen_subcommands images' -l format -d 'Pretty-print images using a Go template' +complete -c docker -f -n '__fish_docker_seen_subcommands images' -l help -d 'Print usage' +complete -c docker -f -n '__fish_docker_seen_subcommands images' -l no-trunc -d "Don't truncate output" +complete -c docker -f -n '__fish_docker_seen_subcommands images' -s q -l quiet -d 'Only show image IDs' +complete -c docker -f -n '__fish_docker_seen_subcommands images' -a '(__fish_print_docker_repositories)' -d "Repository" # import complete -c docker -f -n '__fish_docker_no_subcommand' -a import -d 'Create a new filesystem image from the contents of a tarball' -complete -c docker -f -n '__fish_seen_subcommand_from import' -s c -l change -d 'Apply Dockerfile instruction to the created image' -complete -c docker -f -n '__fish_seen_subcommand_from import' -s m -l message -d 'Set commit message for imported image' -complete -c docker -f -n '__fish_seen_subcommand_from import' -l help -d 'Print usage' +complete -c docker -f -n '__fish_docker_seen_subcommands import' -s c -l change -d 'Apply Dockerfile instruction to the created image' +complete -c docker -f -n '__fish_docker_seen_subcommands import' -s m -l message -d 'Set commit message for imported image' +complete -c docker -f -n '__fish_docker_seen_subcommands import' -l help -d 'Print usage' # info complete -c docker -f -n '__fish_docker_no_subcommand' -a info -d 'Display system-wide information' -complete -c docker -f -n '__fish_seen_subcommand_from info' -s f -l format -d 'Format the output using the given go template' -complete -c docker -f -n '__fish_seen_subcommand_from info' -l help -d 'Print usage' +complete -c docker -f -n '__fish_docker_seen_subcommands info' -s f -l format -d 'Format the output using the given go template' +complete -c docker -f -n '__fish_docker_seen_subcommands info' -l help -d 'Print usage' # inspect complete -c docker -f -n '__fish_docker_no_subcommand' -a inspect -d 'Return low-level information on a container or image' -complete -c docker -f -n '__fish_seen_subcommand_from inspect' -s f -l format -d 'Format the output using the given go template.' -complete -c docker -f -n '__fish_seen_subcommand_from inspect' -l help -d 'Print usage' -complete -c docker -f -n '__fish_seen_subcommand_from inspect' -s s -l size -d 'Display total file sizes if the type is container.' -complete -c docker -f -n '__fish_seen_subcommand_from inspect' -l type -d 'Return JSON for specified type' -complete -c docker -f -n '__fish_seen_subcommand_from inspect' -a '(__fish_print_docker_images)' -d "Image" -complete -c docker -f -n '__fish_seen_subcommand_from inspect' -a '(__fish_print_docker_containers all)' -d "Container" +complete -c docker -f -n '__fish_docker_seen_subcommands inspect' -s f -l format -d 'Format the output using the given go template.' +complete -c docker -f -n '__fish_docker_seen_subcommands inspect' -l help -d 'Print usage' +complete -c docker -f -n '__fish_docker_seen_subcommands inspect' -s s -l size -d 'Display total file sizes if the type is container.' +complete -c docker -f -n '__fish_docker_seen_subcommands inspect' -l type -d 'Return JSON for specified type' +complete -c docker -f -n '__fish_docker_seen_subcommands inspect' -a '(__fish_print_docker_images)' -d "Image" +complete -c docker -f -n '__fish_docker_seen_subcommands inspect' -a '(__fish_print_docker_containers all)' -d "Container" # kill complete -c docker -f -n '__fish_docker_no_subcommand' -a kill -d 'Kill a running container' -complete -c docker -f -n '__fish_seen_subcommand_from kill' -l help -d 'Print usage' -complete -c docker -f -n '__fish_seen_subcommand_from kill' -s s -l signal -d 'Signal to send to the container' -complete -c docker -f -n '__fish_seen_subcommand_from kill' -a '(__fish_print_docker_containers running)' -d "Container" +complete -c docker -f -n '__fish_docker_seen_subcommands kill' -l help -d 'Print usage' +complete -c docker -f -n '__fish_docker_seen_subcommands kill' -s s -l signal -d 'Signal to send to the container' +complete -c docker -f -n '__fish_docker_seen_subcommands kill' -a '(__fish_print_docker_containers running)' -d "Container" # load complete -c docker -f -n '__fish_docker_no_subcommand' -a load -d 'Load an image from a tar archive' -complete -c docker -f -n '__fish_seen_subcommand_from load' -l help -d 'Print usage' -complete -c docker -f -n '__fish_seen_subcommand_from load' -s i -l input -d 'Read from a tar archive file, instead of STDIN' -complete -c docker -f -n '__fish_seen_subcommand_from load' -s q -l quiet -d 'Suppress the load output' +complete -c docker -f -n '__fish_docker_seen_subcommands load' -l help -d 'Print usage' +complete -c docker -f -n '__fish_docker_seen_subcommands load' -s i -l input -d 'Read from a tar archive file, instead of STDIN' +complete -c docker -f -n '__fish_docker_seen_subcommands load' -s q -l quiet -d 'Suppress the load output' # login complete -c docker -f -n '__fish_docker_no_subcommand' -a login -d 'Log in to a Docker registry server' -complete -c docker -f -n '__fish_seen_subcommand_from login' -l help -d 'Print usage' -complete -c docker -f -n '__fish_seen_subcommand_from login' -s p -l password -d 'Password' -complete -c docker -f -n '__fish_seen_subcommand_from login' -l password-stdin -d 'Take the password from stdin' -complete -c docker -f -n '__fish_seen_subcommand_from login' -s u -l username -d 'Username' +complete -c docker -f -n '__fish_docker_seen_subcommands login' -l help -d 'Print usage' +complete -c docker -f -n '__fish_docker_seen_subcommands login' -s p -l password -d 'Password' +complete -c docker -f -n '__fish_docker_seen_subcommands login' -l password-stdin -d 'Take the password from stdin' +complete -c docker -f -n '__fish_docker_seen_subcommands login' -s u -l username -d 'Username' # logout complete -c docker -f -n '__fish_docker_no_subcommand' -a logout -d 'Log out from a Docker registry server' # logs complete -c docker -f -n '__fish_docker_no_subcommand' -a logs -d 'Fetch the logs of a container' -complete -c docker -f -n '__fish_seen_subcommand_from logs' -s f -l follow -d 'Follow log output' -complete -c docker -f -n '__fish_seen_subcommand_from logs' -l help -d 'Print usage' -complete -c docker -f -n '__fish_seen_subcommand_from logs' -s t -l timestamps -d 'Show timestamps' -complete -c docker -f -n '__fish_seen_subcommand_from logs' -l since -d 'Show logs since timestamp' -complete -c docker -f -n '__fish_seen_subcommand_from logs' -l tail -d 'Output the specified number of lines at the end of logs (defaults to all logs)' -complete -c docker -f -n '__fish_seen_subcommand_from logs' -a '(__fish_print_docker_containers running)' -d "Container" +complete -c docker -f -n '__fish_docker_seen_subcommands logs' -s f -l follow -d 'Follow log output' +complete -c docker -f -n '__fish_docker_seen_subcommands logs' -l help -d 'Print usage' +complete -c docker -f -n '__fish_docker_seen_subcommands logs' -s t -l timestamps -d 'Show timestamps' +complete -c docker -f -n '__fish_docker_seen_subcommands logs' -l since -d 'Show logs since timestamp' +complete -c docker -f -n '__fish_docker_seen_subcommands logs' -l tail -d 'Output the specified number of lines at the end of logs (defaults to all logs)' +complete -c docker -f -n '__fish_docker_seen_subcommands logs' -a '(__fish_print_docker_containers running)' -d "Container" # network complete -c docker -f -n '__fish_docker_no_subcommand' -a network -d 'Manage networks' @@ -448,219 +465,219 @@ complete -c docker -A -f -n '__fish_seen_subcommand_from network inspect' -a '(_ # node complete -c docker -f -n '__fish_docker_no_subcommand' -a node -d 'Manage Swarm nodes' -complete -c docker -f -n '__fish_seen_subcommand_from node' -a demote -d 'Demote one or more nodes from manager in the swarm' -complete -c docker -f -n '__fish_seen_subcommand_from node' -a inspect -d 'Display detailed information on one or more nodes' -complete -c docker -f -n '__fish_seen_subcommand_from node' -a 'ls list' -d 'List nodes in the swarm' -complete -c docker -f -n '__fish_seen_subcommand_from node' -a promote -d 'Promote one or more nodes to manager in the swarm' -complete -c docker -f -n '__fish_seen_subcommand_from node' -a ps -d 'List tasks running on one or more nodes, defaults to current node' -complete -c docker -f -n '__fish_seen_subcommand_from node' -a 'rm remove' -d 'Remove one or more nodes from the swarm' -complete -c docker -f -n '__fish_seen_subcommand_from node' -a update -d 'Update a node' +complete -c docker -f -n '__fish_docker_seen_subcommands node' -a demote -d 'Demote one or more nodes from manager in the swarm' +complete -c docker -f -n '__fish_docker_seen_subcommands node' -a inspect -d 'Display detailed information on one or more nodes' +complete -c docker -f -n '__fish_docker_seen_subcommands node' -a 'ls list' -d 'List nodes in the swarm' +complete -c docker -f -n '__fish_docker_seen_subcommands node' -a promote -d 'Promote one or more nodes to manager in the swarm' +complete -c docker -f -n '__fish_docker_seen_subcommands node' -a ps -d 'List tasks running on one or more nodes, defaults to current node' +complete -c docker -f -n '__fish_docker_seen_subcommands node' -a 'rm remove' -d 'Remove one or more nodes from the swarm' +complete -c docker -f -n '__fish_docker_seen_subcommands node' -a update -d 'Update a node' # plugin complete -c docker -f -n '__fish_docker_no_subcommand' -a plugin -d 'Manage plugins' -complete -c docker -f -n '__fish_seen_subcommand_from plugin' -a create -d 'Create a plugin from a rootfs and configuration. Plugin data directory must contain config.json and rootfs directory.' -complete -c docker -f -n '__fish_seen_subcommand_from plugin' -a disable -d 'Disable a plugin' -complete -c docker -f -n '__fish_seen_subcommand_from plugin' -a enable -d 'Enable a plugin' -complete -c docker -f -n '__fish_seen_subcommand_from plugin' -a inspect -d 'Display detailed information on one or more plugins' -complete -c docker -f -n '__fish_seen_subcommand_from plugin' -a install -d 'Install a plugin' -complete -c docker -f -n '__fish_seen_subcommand_from plugin' -a'ls list' -d 'List plugins' -complete -c docker -f -n '__fish_seen_subcommand_from plugin' -a push -d 'Push a plugin to a registry' -complete -c docker -f -n '__fish_seen_subcommand_from plugin' -a 'rm remove' -d 'Remove one or more plugins' -complete -c docker -f -n '__fish_seen_subcommand_from plugin' -a set -d 'Change settings for a plugin' -complete -c docker -f -n '__fish_seen_subcommand_from plugin' -a upgrade -d 'Upgrade an existing plugin' +complete -c docker -f -n '__fish_docker_seen_subcommands plugin' -a create -d 'Create a plugin from a rootfs and configuration. Plugin data directory must contain config.json and rootfs directory.' +complete -c docker -f -n '__fish_docker_seen_subcommands plugin' -a disable -d 'Disable a plugin' +complete -c docker -f -n '__fish_docker_seen_subcommands plugin' -a enable -d 'Enable a plugin' +complete -c docker -f -n '__fish_docker_seen_subcommands plugin' -a inspect -d 'Display detailed information on one or more plugins' +complete -c docker -f -n '__fish_docker_seen_subcommands plugin' -a install -d 'Install a plugin' +complete -c docker -f -n '__fish_docker_seen_subcommands plugin' -a'ls list' -d 'List plugins' +complete -c docker -f -n '__fish_docker_seen_subcommands plugin' -a push -d 'Push a plugin to a registry' +complete -c docker -f -n '__fish_docker_seen_subcommands plugin' -a 'rm remove' -d 'Remove one or more plugins' +complete -c docker -f -n '__fish_docker_seen_subcommands plugin' -a set -d 'Change settings for a plugin' +complete -c docker -f -n '__fish_docker_seen_subcommands plugin' -a upgrade -d 'Upgrade an existing plugin' # port complete -c docker -f -n '__fish_docker_no_subcommand' -a port -d 'Lookup the public-facing port that is NAT-ed to PRIVATE_PORT' -complete -c docker -f -n '__fish_seen_subcommand_from port' -l help -d 'Print usage' -complete -c docker -f -n '__fish_seen_subcommand_from port' -a '(__fish_print_docker_containers running)' -d "Container" +complete -c docker -f -n '__fish_docker_seen_subcommands port' -l help -d 'Print usage' +complete -c docker -f -n '__fish_docker_seen_subcommands port' -a '(__fish_print_docker_containers running)' -d "Container" # pause complete -c docker -f -n '__fish_docker_no_subcommand' -a pause -d 'Pause all processes within a container' -complete -c docker -f -n '__fish_seen_subcommand_from pause' -a '(__fish_print_docker_containers running)' -d "Container" +complete -c docker -f -n '__fish_docker_seen_subcommands pause' -a '(__fish_print_docker_containers running)' -d "Container" # ps complete -c docker -f -n '__fish_docker_no_subcommand' -a ps -d 'List containers' -complete -c docker -f -n '__fish_seen_subcommand_from ps' -s a -l all -d 'Show all containers. Only running containers are shown by default.' -complete -c docker -f -n '__fish_seen_subcommand_from ps' -l before -d 'Show only container created before Id or Name, include non-running ones.' -complete -c docker -f -n '__fish_seen_subcommand_from ps' -s f -l filter -d 'Provide filter values. Valid filters:' -complete -c docker -f -n '__fish_seen_subcommand_from ps' -l help -d 'Print usage' -complete -c docker -f -n '__fish_seen_subcommand_from ps' -s l -l latest -d 'Show only the latest created container, include non-running ones.' -complete -c docker -f -n '__fish_seen_subcommand_from ps' -s n -d 'Show n last created containers, include non-running ones.' -complete -c docker -f -n '__fish_seen_subcommand_from ps' -l no-trunc -d "Don't truncate output" -complete -c docker -f -n '__fish_seen_subcommand_from ps' -s q -l quiet -d 'Only display container IDs' -complete -c docker -f -n '__fish_seen_subcommand_from ps' -s s -l size -d 'Display total file sizes' -complete -c docker -f -n '__fish_seen_subcommand_from ps' -l since -d 'Show only containers created since Id or Name, include non-running ones.' +complete -c docker -f -n '__fish_docker_seen_subcommands ps' -s a -l all -d 'Show all containers. Only running containers are shown by default.' +complete -c docker -f -n '__fish_docker_seen_subcommands ps' -l before -d 'Show only container created before Id or Name, include non-running ones.' +complete -c docker -f -n '__fish_docker_seen_subcommands ps' -s f -l filter -d 'Provide filter values. Valid filters:' +complete -c docker -f -n '__fish_docker_seen_subcommands ps' -l help -d 'Print usage' +complete -c docker -f -n '__fish_docker_seen_subcommands ps' -s l -l latest -d 'Show only the latest created container, include non-running ones.' +complete -c docker -f -n '__fish_docker_seen_subcommands ps' -s n -d 'Show n last created containers, include non-running ones.' +complete -c docker -f -n '__fish_docker_seen_subcommands ps' -l no-trunc -d "Don't truncate output" +complete -c docker -f -n '__fish_docker_seen_subcommands ps' -s q -l quiet -d 'Only display container IDs' +complete -c docker -f -n '__fish_docker_seen_subcommands ps' -s s -l size -d 'Display total file sizes' +complete -c docker -f -n '__fish_docker_seen_subcommands ps' -l since -d 'Show only containers created since Id or Name, include non-running ones.' # pull complete -c docker -f -n '__fish_docker_no_subcommand' -a pull -d 'Pull an image or a repository from a Docker registry server' -complete -c docker -f -n '__fish_seen_subcommand_from pull' -s a -l all-tags -d 'Download all tagged images in the repository' -complete -c docker -f -n '__fish_seen_subcommand_from pull' -l help -d 'Print usage' -complete -c docker -f -n '__fish_seen_subcommand_from pull' -a '(__fish_print_docker_images)' -d "Image" -complete -c docker -f -n '__fish_seen_subcommand_from pull' -a '(__fish_print_docker_repositories)' -d "Repository" +complete -c docker -f -n '__fish_docker_seen_subcommands pull' -s a -l all-tags -d 'Download all tagged images in the repository' +complete -c docker -f -n '__fish_docker_seen_subcommands pull' -l help -d 'Print usage' +complete -c docker -f -n '__fish_docker_seen_subcommands pull' -a '(__fish_print_docker_images)' -d "Image" +complete -c docker -f -n '__fish_docker_seen_subcommands pull' -a '(__fish_print_docker_repositories)' -d "Repository" # push complete -c docker -f -n '__fish_docker_no_subcommand' -a push -d 'Push an image or a repository to a Docker registry server' -complete -c docker -f -n '__fish_seen_subcommand_from push' -l help -d 'Print usage' -complete -c docker -f -n '__fish_seen_subcommand_from push' -a '(__fish_print_docker_images)' -d "Image" -complete -c docker -f -n '__fish_seen_subcommand_from push' -a '(__fish_print_docker_repositories)' -d "Repository" +complete -c docker -f -n '__fish_docker_seen_subcommands push' -l help -d 'Print usage' +complete -c docker -f -n '__fish_docker_seen_subcommands push' -a '(__fish_print_docker_images)' -d "Image" +complete -c docker -f -n '__fish_docker_seen_subcommands push' -a '(__fish_print_docker_repositories)' -d "Repository" # rename complete -c docker -f -n '__fish_docker_no_subcommand' -a rename -d 'Rename an existing container' # restart complete -c docker -f -n '__fish_docker_no_subcommand' -a restart -d 'Restart a container' -complete -c docker -f -n '__fish_seen_subcommand_from restart' -l help -d 'Print usage' -complete -c docker -f -n '__fish_seen_subcommand_from restart' -s t -l time -d 'Number of seconds to try to stop for before killing the container. Once killed it will then be restarted. Default is 10 seconds.' -complete -c docker -f -n '__fish_seen_subcommand_from restart' -a '(__fish_print_docker_containers running)' -d "Container" +complete -c docker -f -n '__fish_docker_seen_subcommands restart' -l help -d 'Print usage' +complete -c docker -f -n '__fish_docker_seen_subcommands restart' -s t -l time -d 'Number of seconds to try to stop for before killing the container. Once killed it will then be restarted. Default is 10 seconds.' +complete -c docker -f -n '__fish_docker_seen_subcommands restart' -a '(__fish_print_docker_containers running)' -d "Container" # rm complete -c docker -f -n '__fish_docker_no_subcommand' -a 'rm remove' -d 'Remove one or more containers' -complete -c docker -f -n '__fish_seen_subcommand_from rm' -s f -l force -d 'Force the removal of a running container (uses SIGKILL)' -complete -c docker -f -n '__fish_seen_subcommand_from rm' -l help -d 'Print usage' -complete -c docker -f -n '__fish_seen_subcommand_from rm' -s l -l link -d 'Remove the specified link and not the underlying container' -complete -c docker -f -n '__fish_seen_subcommand_from rm' -s v -l volumes -d 'Remove anonymous volumes associated with the container' -complete -c docker -f -n '__fish_seen_subcommand_from rm' -a '(__fish_print_docker_containers stopped)' -d "Container" -complete -c docker -f -n '__fish_seen_subcommand_from rm' -s f -l force -a '(__fish_print_docker_containers all)' -d "Container" +complete -c docker -f -n '__fish_docker_seen_subcommands rm' -s f -l force -d 'Force the removal of a running container (uses SIGKILL)' +complete -c docker -f -n '__fish_docker_seen_subcommands rm' -l help -d 'Print usage' +complete -c docker -f -n '__fish_docker_seen_subcommands rm' -s l -l link -d 'Remove the specified link and not the underlying container' +complete -c docker -f -n '__fish_docker_seen_subcommands rm' -s v -l volumes -d 'Remove anonymous volumes associated with the container' +complete -c docker -f -n '__fish_docker_seen_subcommands rm' -a '(__fish_print_docker_containers stopped)' -d "Container" +complete -c docker -f -n '__fish_docker_seen_subcommands rm' -s f -l force -a '(__fish_print_docker_containers all)' -d "Container" # rmi complete -c docker -f -n '__fish_docker_no_subcommand' -a rmi -d 'Remove one or more images' -complete -c docker -f -n '__fish_seen_subcommand_from rmi' -s f -l force -d 'Force removal of the image' -complete -c docker -f -n '__fish_seen_subcommand_from rmi' -l help -d 'Print usage' -complete -c docker -f -n '__fish_seen_subcommand_from rmi' -l no-prune -d 'Do not delete untagged parents' -complete -c docker -f -n '__fish_seen_subcommand_from rmi' -a '(__fish_print_docker_images)' -d "Image" +complete -c docker -f -n '__fish_docker_seen_subcommands rmi' -s f -l force -d 'Force removal of the image' +complete -c docker -f -n '__fish_docker_seen_subcommands rmi' -l help -d 'Print usage' +complete -c docker -f -n '__fish_docker_seen_subcommands rmi' -l no-prune -d 'Do not delete untagged parents' +complete -c docker -f -n '__fish_docker_seen_subcommands rmi' -a '(__fish_print_docker_images)' -d "Image" # run complete -c docker -f -n '__fish_docker_no_subcommand' -a run -d 'Run a command in a new container' -complete -c docker -f -n '__fish_seen_subcommand_from run' -s a -l attach -d 'Attach to STDIN, STDOUT or STDERR.' -complete -c docker -f -n '__fish_seen_subcommand_from run' -l add-host -d 'Add a custom host-to-IP mapping (host:ip)' -complete -c docker -f -n '__fish_seen_subcommand_from run' -s c -l cpu-shares -d 'CPU shares (relative weight)' -complete -c docker -f -n '__fish_seen_subcommand_from run' -l cap-add -d 'Add Linux capabilities' -complete -c docker -f -n '__fish_seen_subcommand_from run' -l cap-drop -d 'Drop Linux capabilities' -complete -c docker -f -n '__fish_seen_subcommand_from run' -l cgroupns -d 'Cgroup namespace mode to use' -complete -c docker -f -n '__fish_seen_subcommand_from run' -l cidfile -d 'Write the container ID to the file' -complete -c docker -f -n '__fish_seen_subcommand_from run' -l cpuset -d 'CPUs in which to allow execution (0-3, 0,1)' -complete -c docker -f -n '__fish_seen_subcommand_from run' -s d -l detach -d 'Detached mode: run the container in the background and print the new container ID' -complete -c docker -f -n '__fish_seen_subcommand_from run' -l device -d 'Add a host device to the container (e.g. --device=/dev/sdc:/dev/xvdc:rwm)' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l device-cgroup-rule -d 'Add a rule to the cgroup allowed devices list (e.g. --device-cgroup-rule="c 13:37 rwm")' -complete -c docker -f -n '__fish_seen_subcommand_from run' -l dns -d 'Set custom DNS servers' -complete -c docker -f -n '__fish_seen_subcommand_from run' -l dns-opt -d "Set custom DNS options (Use --dns-opt='' if you don't wish to set options)" -complete -c docker -f -n '__fish_seen_subcommand_from run' -l dns-search -d "Set custom DNS search domains (Use --dns-search=. if you don't wish to set the search domain)" -complete -c docker -f -n '__fish_seen_subcommand_from run' -s e -l env -d 'Set environment variables' -complete -c docker -f -n '__fish_seen_subcommand_from run' -l entrypoint -d 'Overwrite the default ENTRYPOINT of the image' -complete -c docker -f -n '__fish_seen_subcommand_from run' -l env-file -d 'Read in a line delimited file of environment variables' -complete -c docker -f -n '__fish_seen_subcommand_from run' -l expose -d 'Expose a port or a range of ports (e.g. --expose=3300-3310) from the container without publishing it to your host' -complete -c docker -f -n '__fish_seen_subcommand_from create' -l group-add -d 'Add additional groups to run as' -complete -c docker -f -n '__fish_seen_subcommand_from run' -s h -l hostname -d 'Container host name' -complete -c docker -f -n '__fish_seen_subcommand_from run' -l help -d 'Print usage' -complete -c docker -f -n '__fish_seen_subcommand_from run' -s i -l interactive -d 'Keep STDIN open even if not attached' -complete -c docker -f -n '__fish_seen_subcommand_from run' -l ipc -d 'Default is to create a private IPC namespace (POSIX SysV IPC) for the container' -complete -c docker -f -n '__fish_seen_subcommand_from run' -l link -d 'Add link to another container in the form of :alias' -complete -c docker -f -n '__fish_seen_subcommand_from run' -s m -l memory -d 'Memory limit (format: [], where unit = b, k, m or g)' -complete -c docker -f -n '__fish_seen_subcommand_from run' -l mac-address -d 'Container MAC address (e.g., 92:d0:c6:0a:29:33)' -complete -c docker -f -n '__fish_seen_subcommand_from run' -l memory-swap -d "Total memory usage (memory + swap), set '-1' to disable swap (format: [], where unit = b, k, m or g)" -complete -c docker -f -n '__fish_seen_subcommand_from run' -l mount -d 'Attach a filesystem mount to the container' -complete -c docker -f -n '__fish_seen_subcommand_from run' -l name -d 'Assign a name to the container' -complete -c docker -f -n '__fish_seen_subcommand_from run' -l net -d 'Set the Network mode for the container' -complete -c docker -f -n '__fish_seen_subcommand_from run' -s P -l publish-all -d 'Publish all exposed ports to random ports on the host interfaces' -complete -c docker -f -n '__fish_seen_subcommand_from run' -s p -l publish -d "Publish a container's port to the host" -complete -c docker -f -n '__fish_seen_subcommand_from run' -l pid -d 'Default is to create a private PID namespace for the container' -complete -c docker -f -n '__fish_seen_subcommand_from run' -l privileged -d 'Give extended privileges to this container' -complete -c docker -f -n '__fish_seen_subcommand_from run' -l read-only -d "Mount the container's root filesystem as read only" -complete -c docker -f -n '__fish_seen_subcommand_from run' -l restart -d 'Restart policy to apply when a container exits (no, on-failure[:max-retry], always)' -complete -c docker -f -n '__fish_seen_subcommand_from run' -l rm -d 'Automatically remove the container when it exits (incompatible with -d)' -complete -c docker -f -n '__fish_seen_subcommand_from run' -l security-opt -d 'Security Options' -complete -c docker -f -n '__fish_seen_subcommand_from run' -l sig-proxy -d 'Proxy received signals to the process (non-TTY mode only). SIGCHLD, SIGSTOP, and SIGKILL are not proxied.' -complete -c docker -f -n '__fish_seen_subcommand_from run' -l stop-signal -d 'Signal to kill a container' -complete -c docker -f -n '__fish_seen_subcommand_from run' -s t -l tty -d 'Allocate a pseudo-TTY' -complete -c docker -f -n '__fish_seen_subcommand_from run' -s u -l user -d 'Username or UID' -complete -c docker -f -n '__fish_seen_subcommand_from run' -l tmpfs -d 'Mount tmpfs on a directory' -complete -c docker -f -n '__fish_seen_subcommand_from run' -s v -l volume -d 'Bind mount a volume (e.g., from the host: -v /host:/container, from Docker: -v /container)' -complete -c docker -f -n '__fish_seen_subcommand_from run' -l volumes-from -d 'Mount volumes from the specified container(s)' -complete -c docker -f -n '__fish_seen_subcommand_from run' -s w -l workdir -d 'Working directory inside the container' -complete -c docker -f -n '__fish_seen_subcommand_from run' -a '(__fish_print_docker_images)' -d "Image" +complete -c docker -f -n '__fish_docker_seen_subcommands run' -s a -l attach -d 'Attach to STDIN, STDOUT or STDERR.' +complete -c docker -f -n '__fish_docker_seen_subcommands run' -l add-host -d 'Add a custom host-to-IP mapping (host:ip)' +complete -c docker -f -n '__fish_docker_seen_subcommands run' -s c -l cpu-shares -d 'CPU shares (relative weight)' +complete -c docker -f -n '__fish_docker_seen_subcommands run' -l cap-add -d 'Add Linux capabilities' +complete -c docker -f -n '__fish_docker_seen_subcommands run' -l cap-drop -d 'Drop Linux capabilities' +complete -c docker -f -n '__fish_docker_seen_subcommands run' -l cgroupns -d 'Cgroup namespace mode to use' +complete -c docker -f -n '__fish_docker_seen_subcommands run' -l cidfile -d 'Write the container ID to the file' +complete -c docker -f -n '__fish_docker_seen_subcommands run' -l cpuset -d 'CPUs in which to allow execution (0-3, 0,1)' +complete -c docker -f -n '__fish_docker_seen_subcommands run' -s d -l detach -d 'Detached mode: run the container in the background and print the new container ID' +complete -c docker -f -n '__fish_docker_seen_subcommands run' -l device -d 'Add a host device to the container (e.g. --device=/dev/sdc:/dev/xvdc:rwm)' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l device-cgroup-rule -d 'Add a rule to the cgroup allowed devices list (e.g. --device-cgroup-rule="c 13:37 rwm")' +complete -c docker -f -n '__fish_docker_seen_subcommands run' -l dns -d 'Set custom DNS servers' +complete -c docker -f -n '__fish_docker_seen_subcommands run' -l dns-opt -d "Set custom DNS options (Use --dns-opt='' if you don't wish to set options)" +complete -c docker -f -n '__fish_docker_seen_subcommands run' -l dns-search -d "Set custom DNS search domains (Use --dns-search=. if you don't wish to set the search domain)" +complete -c docker -f -n '__fish_docker_seen_subcommands run' -s e -l env -d 'Set environment variables' +complete -c docker -f -n '__fish_docker_seen_subcommands run' -l entrypoint -d 'Overwrite the default ENTRYPOINT of the image' +complete -c docker -f -n '__fish_docker_seen_subcommands run' -l env-file -d 'Read in a line delimited file of environment variables' +complete -c docker -f -n '__fish_docker_seen_subcommands run' -l expose -d 'Expose a port or a range of ports (e.g. --expose=3300-3310) from the container without publishing it to your host' +complete -c docker -f -n '__fish_docker_seen_subcommands create' -l group-add -d 'Add additional groups to run as' +complete -c docker -f -n '__fish_docker_seen_subcommands run' -s h -l hostname -d 'Container host name' +complete -c docker -f -n '__fish_docker_seen_subcommands run' -l help -d 'Print usage' +complete -c docker -f -n '__fish_docker_seen_subcommands run' -s i -l interactive -d 'Keep STDIN open even if not attached' +complete -c docker -f -n '__fish_docker_seen_subcommands run' -l ipc -d 'Default is to create a private IPC namespace (POSIX SysV IPC) for the container' +complete -c docker -f -n '__fish_docker_seen_subcommands run' -l link -d 'Add link to another container in the form of :alias' +complete -c docker -f -n '__fish_docker_seen_subcommands run' -s m -l memory -d 'Memory limit (format: [], where unit = b, k, m or g)' +complete -c docker -f -n '__fish_docker_seen_subcommands run' -l mac-address -d 'Container MAC address (e.g., 92:d0:c6:0a:29:33)' +complete -c docker -f -n '__fish_docker_seen_subcommands run' -l memory-swap -d "Total memory usage (memory + swap), set '-1' to disable swap (format: [], where unit = b, k, m or g)" +complete -c docker -f -n '__fish_docker_seen_subcommands run' -l mount -d 'Attach a filesystem mount to the container' +complete -c docker -f -n '__fish_docker_seen_subcommands run' -l name -d 'Assign a name to the container' +complete -c docker -f -n '__fish_docker_seen_subcommands run' -l net -d 'Set the Network mode for the container' +complete -c docker -f -n '__fish_docker_seen_subcommands run' -s P -l publish-all -d 'Publish all exposed ports to random ports on the host interfaces' +complete -c docker -f -n '__fish_docker_seen_subcommands run' -s p -l publish -d "Publish a container's port to the host" +complete -c docker -f -n '__fish_docker_seen_subcommands run' -l pid -d 'Default is to create a private PID namespace for the container' +complete -c docker -f -n '__fish_docker_seen_subcommands run' -l privileged -d 'Give extended privileges to this container' +complete -c docker -f -n '__fish_docker_seen_subcommands run' -l read-only -d "Mount the container's root filesystem as read only" +complete -c docker -f -n '__fish_docker_seen_subcommands run' -l restart -d 'Restart policy to apply when a container exits (no, on-failure[:max-retry], always)' +complete -c docker -f -n '__fish_docker_seen_subcommands run' -l rm -d 'Automatically remove the container when it exits (incompatible with -d)' +complete -c docker -f -n '__fish_docker_seen_subcommands run' -l security-opt -d 'Security Options' +complete -c docker -f -n '__fish_docker_seen_subcommands run' -l sig-proxy -d 'Proxy received signals to the process (non-TTY mode only). SIGCHLD, SIGSTOP, and SIGKILL are not proxied.' +complete -c docker -f -n '__fish_docker_seen_subcommands run' -l stop-signal -d 'Signal to kill a container' +complete -c docker -f -n '__fish_docker_seen_subcommands run' -s t -l tty -d 'Allocate a pseudo-TTY' +complete -c docker -f -n '__fish_docker_seen_subcommands run' -s u -l user -d 'Username or UID' +complete -c docker -f -n '__fish_docker_seen_subcommands run' -l tmpfs -d 'Mount tmpfs on a directory' +complete -c docker -f -n '__fish_docker_seen_subcommands run' -s v -l volume -d 'Bind mount a volume (e.g., from the host: -v /host:/container, from Docker: -v /container)' +complete -c docker -f -n '__fish_docker_seen_subcommands run' -l volumes-from -d 'Mount volumes from the specified container(s)' +complete -c docker -f -n '__fish_docker_seen_subcommands run' -s w -l workdir -d 'Working directory inside the container' +complete -c docker -f -n '__fish_docker_seen_subcommands run' -a '(__fish_print_docker_images)' -d "Image" # save complete -c docker -f -n '__fish_docker_no_subcommand' -a save -d 'Save an image to a tar archive' -complete -c docker -f -n '__fish_seen_subcommand_from save' -l help -d 'Print usage' -complete -c docker -f -n '__fish_seen_subcommand_from save' -s o -l output -d 'Write to an file, instead of STDOUT' -complete -c docker -f -n '__fish_seen_subcommand_from save' -a '(__fish_print_docker_images)' -d "Image" +complete -c docker -f -n '__fish_docker_seen_subcommands save' -l help -d 'Print usage' +complete -c docker -f -n '__fish_docker_seen_subcommands save' -s o -l output -d 'Write to an file, instead of STDOUT' +complete -c docker -f -n '__fish_docker_seen_subcommands save' -a '(__fish_print_docker_images)' -d "Image" # secret complete -c docker -f -n '__fish_docker_no_subcommand' -a secret -d 'Manage Docker secrets' -complete -c docker -f -n '__fish_seen_subcommand_from secret' -a create -d 'Create a secret from a file or STDIN as content' -complete -c docker -f -n '__fish_seen_subcommand_from secret' -a inspect -d 'Display detailed information on one or more secrets' -complete -c docker -f -n '__fish_seen_subcommand_from secret' -a 'ls list' -d 'List secrets' -complete -c docker -f -n '__fish_seen_subcommand_from secret' -a 'rm remove' -d 'Remove one or more secrets' +complete -c docker -f -n '__fish_docker_seen_subcommands secret' -a create -d 'Create a secret from a file or STDIN as content' +complete -c docker -f -n '__fish_docker_seen_subcommands secret' -a inspect -d 'Display detailed information on one or more secrets' +complete -c docker -f -n '__fish_docker_seen_subcommands secret' -a 'ls list' -d 'List secrets' +complete -c docker -f -n '__fish_docker_seen_subcommands secret' -a 'rm remove' -d 'Remove one or more secrets' # search complete -c docker -f -n '__fish_docker_no_subcommand' -a search -d 'Search for an image on the registry (defaults to the Docker Hub)' -complete -c docker -f -n '__fish_seen_subcommand_from search' -l automated -d 'Only show automated builds' -complete -c docker -f -n '__fish_seen_subcommand_from search' -l help -d 'Print usage' -complete -c docker -f -n '__fish_seen_subcommand_from search' -l no-trunc -d "Don't truncate output" -complete -c docker -f -n '__fish_seen_subcommand_from search' -s s -l stars -d 'Only displays with at least x stars' +complete -c docker -f -n '__fish_docker_seen_subcommands search' -l automated -d 'Only show automated builds' +complete -c docker -f -n '__fish_docker_seen_subcommands search' -l help -d 'Print usage' +complete -c docker -f -n '__fish_docker_seen_subcommands search' -l no-trunc -d "Don't truncate output" +complete -c docker -f -n '__fish_docker_seen_subcommands search' -s s -l stars -d 'Only displays with at least x stars' # service complete -c docker -f -n '__fish_docker_no_subcommand' -a service -d 'Manage services' -complete -c docker -f -n '__fish_seen_subcommand_from service' -a create -d 'Create a new service' -complete -c docker -f -n '__fish_seen_subcommand_from service' -a inspect -d 'Display detailed information on one or more services' -complete -c docker -f -n '__fish_seen_subcommand_from service' -a logs -d 'Fetch the logs of a service or task' -complete -c docker -f -n '__fish_seen_subcommand_from service' -a 'ls list' -d 'List services' -complete -c docker -f -n '__fish_seen_subcommand_from service' -a ps -d 'List the tasks of one or more services' -complete -c docker -f -n '__fish_seen_subcommand_from service' -a 'rm remove' -d 'Remove one or more services' -complete -c docker -f -n '__fish_seen_subcommand_from service' -a rollback -d 'Revert changes to a service\'s configuration' -complete -c docker -f -n '__fish_seen_subcommand_from service' -a scale -d ' Scale one or multiple replicated services' -complete -c docker -f -n '__fish_seen_subcommand_from service' -a update -d 'Update a service' +complete -c docker -f -n '__fish_docker_seen_subcommands service' -a create -d 'Create a new service' +complete -c docker -f -n '__fish_docker_seen_subcommands service' -a inspect -d 'Display detailed information on one or more services' +complete -c docker -f -n '__fish_docker_seen_subcommands service' -a logs -d 'Fetch the logs of a service or task' +complete -c docker -f -n '__fish_docker_seen_subcommands service' -a 'ls list' -d 'List services' +complete -c docker -f -n '__fish_docker_seen_subcommands service' -a ps -d 'List the tasks of one or more services' +complete -c docker -f -n '__fish_docker_seen_subcommands service' -a 'rm remove' -d 'Remove one or more services' +complete -c docker -f -n '__fish_docker_seen_subcommands service' -a rollback -d 'Revert changes to a service\'s configuration' +complete -c docker -f -n '__fish_docker_seen_subcommands service' -a scale -d ' Scale one or multiple replicated services' +complete -c docker -f -n '__fish_docker_seen_subcommands service' -a update -d 'Update a service' # start complete -c docker -f -n '__fish_docker_no_subcommand' -a start -d 'Start a container' -complete -c docker -f -n '__fish_seen_subcommand_from start' -s a -l attach -d "Attach container's STDOUT and STDERR and forward all signals to the process" -complete -c docker -f -n '__fish_seen_subcommand_from start' -l help -d 'Print usage' -complete -c docker -f -n '__fish_seen_subcommand_from start' -s i -l interactive -d "Attach container's STDIN" -complete -c docker -f -n '__fish_seen_subcommand_from start' -a '(__fish_print_docker_containers stopped)' -d "Container" +complete -c docker -f -n '__fish_docker_seen_subcommands start' -s a -l attach -d "Attach container's STDOUT and STDERR and forward all signals to the process" +complete -c docker -f -n '__fish_docker_seen_subcommands start' -l help -d 'Print usage' +complete -c docker -f -n '__fish_docker_seen_subcommands start' -s i -l interactive -d "Attach container's STDIN" +complete -c docker -f -n '__fish_docker_seen_subcommands start' -a '(__fish_print_docker_containers stopped)' -d "Container" # stats complete -c docker -f -n '__fish_docker_no_subcommand' -a stats -d "Display a live stream of one or more containers' resource usage statistics" -complete -c docker -f -n '__fish_seen_subcommand_from stats' -l help -d 'Print usage' -complete -c docker -f -n '__fish_seen_subcommand_from stats' -l no-stream -d 'Disable streaming stats and only pull the first result' -complete -c docker -f -n '__fish_seen_subcommand_from stats' -a '(__fish_print_docker_containers running)' -d "Container" +complete -c docker -f -n '__fish_docker_seen_subcommands stats' -l help -d 'Print usage' +complete -c docker -f -n '__fish_docker_seen_subcommands stats' -l no-stream -d 'Disable streaming stats and only pull the first result' +complete -c docker -f -n '__fish_docker_seen_subcommands stats' -a '(__fish_print_docker_containers running)' -d "Container" # stop complete -c docker -f -n '__fish_docker_no_subcommand' -a stop -d 'Stop a container' -complete -c docker -f -n '__fish_seen_subcommand_from stop' -l help -d 'Print usage' -complete -c docker -f -n '__fish_seen_subcommand_from stop' -s t -l time -d 'Number of seconds to wait for the container to stop before killing it. Default is 10 seconds.' -complete -c docker -f -n '__fish_seen_subcommand_from stop' -a '(__fish_print_docker_containers running)' -d "Container" +complete -c docker -f -n '__fish_docker_seen_subcommands stop' -l help -d 'Print usage' +complete -c docker -f -n '__fish_docker_seen_subcommands stop' -s t -l time -d 'Number of seconds to wait for the container to stop before killing it. Default is 10 seconds.' +complete -c docker -f -n '__fish_docker_seen_subcommands stop' -a '(__fish_print_docker_containers running)' -d "Container" # swarm complete -c docker -f -n '__fish_docker_no_subcommand' -a swarm -d 'Manage Swarm' -complete -c docker -f -n '__fish_seen_subcommand_from swarm' -a ca -d 'Display and rotate the root CA' -complete -c docker -f -n '__fish_seen_subcommand_from swarm' -a init -d 'Initialize a swarm' -complete -c docker -f -n '__fish_seen_subcommand_from swarm' -a join -d 'Join a swarm as a node and/or manager' -complete -c docker -f -n '__fish_seen_subcommand_from swarm' -a join-token -d 'Manage join tokens' -complete -c docker -f -n '__fish_seen_subcommand_from swarm' -a leave -d 'Leave the swarm' -complete -c docker -f -n '__fish_seen_subcommand_from swarm' -a unlock -d 'Unlock swarm' -complete -c docker -f -n '__fish_seen_subcommand_from swarm' -a unlock-key -d 'Manage the unlock key' -complete -c docker -f -n '__fish_seen_subcommand_from swarm' -a update -d 'Update the swarm' +complete -c docker -f -n '__fish_docker_seen_subcommands swarm' -a ca -d 'Display and rotate the root CA' +complete -c docker -f -n '__fish_docker_seen_subcommands swarm' -a init -d 'Initialize a swarm' +complete -c docker -f -n '__fish_docker_seen_subcommands swarm' -a join -d 'Join a swarm as a node and/or manager' +complete -c docker -f -n '__fish_docker_seen_subcommands swarm' -a join-token -d 'Manage join tokens' +complete -c docker -f -n '__fish_docker_seen_subcommands swarm' -a leave -d 'Leave the swarm' +complete -c docker -f -n '__fish_docker_seen_subcommands swarm' -a unlock -d 'Unlock swarm' +complete -c docker -f -n '__fish_docker_seen_subcommands swarm' -a unlock-key -d 'Manage the unlock key' +complete -c docker -f -n '__fish_docker_seen_subcommands swarm' -a update -d 'Update the swarm' # system complete -c docker -f -n '__fish_docker_no_subcommand' -a system -d 'Manage Docker' -complete -c docker -f -n '__fish_seen_subcommand_from system' -a df -d 'Show docker disk usage' -complete -c docker -f -n '__fish_seen_subcommand_from system' -a events -d 'Get real time events from the server' -complete -c docker -f -n '__fish_seen_subcommand_from system' -a info -d 'Display system-wide information' -complete -c docker -f -n '__fish_seen_subcommand_from system' -a prune -d 'Remove unused data' +complete -c docker -f -n '__fish_docker_seen_subcommands system' -a df -d 'Show docker disk usage' +complete -c docker -f -n '__fish_docker_seen_subcommands system' -a events -d 'Get real time events from the server' +complete -c docker -f -n '__fish_docker_seen_subcommands system' -a info -d 'Display system-wide information' +complete -c docker -f -n '__fish_docker_seen_subcommands system' -a prune -d 'Remove unused data' # tag complete -c docker -f -n '__fish_docker_no_subcommand' -a tag -d 'Tag an image into a repository' -complete -c docker -f -n '__fish_seen_subcommand_from tag' -s f -l force -d 'Force' -complete -c docker -f -n '__fish_seen_subcommand_from tag' -l help -d 'Print usage' +complete -c docker -f -n '__fish_docker_seen_subcommands tag' -s f -l force -d 'Force' +complete -c docker -f -n '__fish_docker_seen_subcommands tag' -l help -d 'Print usage' # top complete -c docker -f -n '__fish_docker_no_subcommand' -a top -d 'Lookup the running processes of a container' -complete -c docker -f -n '__fish_seen_subcommand_from top' -l help -d 'Print usage' -complete -c docker -f -n '__fish_seen_subcommand_from top' -a '(__fish_print_docker_containers running)' -d "Container" +complete -c docker -f -n '__fish_docker_seen_subcommands top' -l help -d 'Print usage' +complete -c docker -f -n '__fish_docker_seen_subcommands top' -a '(__fish_print_docker_containers running)' -d "Container" #trust complete -c docker -f -n '__fish_docker_no_subcommand' -a trust -d 'Manage trust on Docker images' -complete -c docker -f -n '__fish_seen_subcommand_from trust' -l help -d 'Print usage' +complete -c docker -f -n '__fish_docker_seen_subcommands trust' -l help -d 'Print usage' #trust inspect complete -c docker -f -n '__fish_docker_no_subcommand_trust' -a inspect -d 'Return low-level information about keys and signatures' @@ -688,23 +705,23 @@ complete -c docker -f -n '__fish_docker_subcommand_path trust signer; and __fish # unpause complete -c docker -f -n '__fish_docker_no_subcommand' -a unpause -d 'Unpause a paused container' -complete -c docker -f -n '__fish_seen_subcommand_from unpause' -a '(__fish_print_docker_containers running)' -d "Container" +complete -c docker -f -n '__fish_docker_seen_subcommands unpause' -a '(__fish_print_docker_containers running)' -d "Container" # version complete -c docker -f -n '__fish_docker_no_subcommand' -a version -d 'Show the Docker version information' -complete -c docker -f -n '__fish_seen_subcommand_from version' -s f -l format -d 'Format the output using the given go template' -complete -c docker -f -n '__fish_seen_subcommand_from version' -l help -d 'Print usage' +complete -c docker -f -n '__fish_docker_seen_subcommands version' -s f -l format -d 'Format the output using the given go template' +complete -c docker -f -n '__fish_docker_seen_subcommands version' -l help -d 'Print usage' # volume complete -c docker -f -n '__fish_docker_no_subcommand' -a volume -d 'Manage volumes' -complete -c docker -f -n '__fish_seen_subcommand_from volume' -a create -d 'Create a volume' -complete -c docker -f -n '__fish_seen_subcommand_from volume' -a inspect -d 'Display detailed information on one or more volumes' -complete -c docker -f -n '__fish_seen_subcommand_from volume' -a 'ls list' -d 'List volumes' -complete -c docker -f -n '__fish_seen_subcommand_from volume' -a prune -d 'Remove all unused local volumes' -complete -c docker -f -n '__fish_seen_subcommand_from volume' -a 'rm remove' -d 'Remove one or more volumes' -complete -c docker -f -n '__fish_seen_subcommand_from volume; and __fish_seen_subcommand_from rm' -a '(__fish_print_docker_volume_names)' -d 'Volume' +complete -c docker -f -n '__fish_docker_seen_subcommands volume' -a create -d 'Create a volume' +complete -c docker -f -n '__fish_docker_seen_subcommands volume' -a inspect -d 'Display detailed information on one or more volumes' +complete -c docker -f -n '__fish_docker_seen_subcommands volume' -a 'ls list' -d 'List volumes' +complete -c docker -f -n '__fish_docker_seen_subcommands volume' -a prune -d 'Remove all unused local volumes' +complete -c docker -f -n '__fish_docker_seen_subcommands volume' -a 'rm remove' -d 'Remove one or more volumes' +complete -c docker -f -n '__fish_docker_seen_subcommands volume; and __fish_docker_seen_subcommands rm' -a '(__fish_print_docker_volume_names)' -d 'Volume' # wait 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_seen_subcommand_from wait' -l help -d 'Print usage' -complete -c docker -f -n '__fish_seen_subcommand_from wait' -a '(__fish_print_docker_containers running)' -d "Container" +complete -c docker -f -n '__fish_docker_seen_subcommands wait' -l help -d 'Print usage' +complete -c docker -f -n '__fish_docker_seen_subcommands wait' -a '(__fish_print_docker_containers running)' -d "Container"