Merge pull request #2912 from albers/completion-run--pull

Add bash completion for `docker run|create --pull`
This commit is contained in:
Brian Goff 2021-01-07 11:24:53 -08:00 committed by GitHub
commit e8f3dfa677
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -1955,6 +1955,7 @@ _docker_container_run_and_create() {
--pid --pid
--pids-limit --pids-limit
--publish -p --publish -p
--pull
--restart --restart
--runtime --runtime
--security-opt --security-opt
@ -2153,6 +2154,10 @@ _docker_container_run_and_create() {
esac esac
return return
;; ;;
--pull)
COMPREPLY=( $( compgen -W 'always missing never' -- "$cur" ) )
return
;;
--runtime) --runtime)
__docker_complete_runtimes __docker_complete_runtimes
return return