From 644c158837b043113a689cab765997feb2e507a7 Mon Sep 17 00:00:00 2001 From: Harald Albers Date: Tue, 11 Aug 2015 09:17:32 -0700 Subject: [PATCH] Update bash completion for `docker run` Also fixed sort order of options using `sort -d` Signed-off-by: Harald Albers --- contrib/completion/bash/docker | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/contrib/completion/bash/docker b/contrib/completion/bash/docker index 5749dfe5ba..fcef20abfb 100644 --- a/contrib/completion/bash/docker +++ b/contrib/completion/bash/docker @@ -998,15 +998,16 @@ _docker_rmi() { _docker_run() { local options_with_args=" --add-host - --blkio-weight --attach -a + --blkio-weight --cap-add --cap-drop --cgroup-parent --cidfile - --cpuset --cpu-period --cpu-quota + --cpuset-cpus + --cpuset-mems --cpu-shares -c --device --dns @@ -1018,8 +1019,8 @@ _docker_run() { --group-add --hostname -h --ipc - --label -l --label-file + --label -l --link --log-driver --log-opt @@ -1027,14 +1028,15 @@ _docker_run() { --mac-address --memory -m --memory-swap + --memory-swappiness --name --net --pid --publish -p --restart --security-opt - --user -u --ulimit + --user -u --uts --volumes-from --volume -v @@ -1042,8 +1044,10 @@ _docker_run() { " local all_options="$options_with_args + --disable-content-trust=false --help --interactive -i + --oom-kill-disable --privileged --publish-all -P --read-only @@ -1053,7 +1057,7 @@ _docker_run() { [ "$command" = "run" ] && all_options="$all_options --detach -d --rm - --sig-proxy + --sig-proxy=false " local options_with_args_glob=$(__docker_to_extglob "$options_with_args")