From 8242fe1fcc3ac190396a4f8aae887f51ab84b044 Mon Sep 17 00:00:00 2001 From: Harald Albers Date: Tue, 5 Jan 2021 21:43:53 +0000 Subject: [PATCH] Add bash completion for `docker run|create --pull` Signed-off-by: Harald Albers --- contrib/completion/bash/docker | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/contrib/completion/bash/docker b/contrib/completion/bash/docker index 49868abbaf..afa7aa287b 100644 --- a/contrib/completion/bash/docker +++ b/contrib/completion/bash/docker @@ -1955,6 +1955,7 @@ _docker_container_run_and_create() { --pid --pids-limit --publish -p + --pull --restart --runtime --security-opt @@ -2153,6 +2154,10 @@ _docker_container_run_and_create() { esac return ;; + --pull) + COMPREPLY=( $( compgen -W 'always missing never' -- "$cur" ) ) + return + ;; --runtime) __docker_complete_runtimes return