Skip to content

Commit 8242fe1

Browse files
committed
Add bash completion for docker run|create --pull
Signed-off-by: Harald Albers <github@albersweb.de>
1 parent 2560cc6 commit 8242fe1

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

contrib/completion/bash/docker

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1955,6 +1955,7 @@ _docker_container_run_and_create() {
19551955
--pid
19561956
--pids-limit
19571957
--publish -p
1958+
--pull
19581959
--restart
19591960
--runtime
19601961
--security-opt
@@ -2153,6 +2154,10 @@ _docker_container_run_and_create() {
21532154
esac
21542155
return
21552156
;;
2157+
--pull)
2158+
COMPREPLY=( $( compgen -W 'always missing never' -- "$cur" ) )
2159+
return
2160+
;;
21562161
--runtime)
21572162
__docker_complete_runtimes
21582163
return

0 commit comments

Comments
 (0)