Add bash completion for docker ps --filter health

Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 5e6a59b59f567d5e69d9ae9df98a89a69b2664bd
Component: engine
This commit is contained in:
Harald Albers
2016-10-29 04:26:08 -07:00
parent 0be42defbd
commit 4011d7083d
@@ -1089,6 +1089,10 @@ _docker_container_ls() {
__docker_complete_containers_all --cur "${cur##*=}" --id
return
;;
health)
COMPREPLY=( $( compgen -W "healthy starting none unhealthy" -- "${cur##*=}" ) )
return
;;
is-task)
COMPREPLY=( $( compgen -W "true false" -- "${cur##*=}" ) )
return
@@ -1117,7 +1121,7 @@ _docker_container_ls() {
case "$prev" in
--filter|-f)
COMPREPLY=( $( compgen -S = -W "ancestor before exited id label name network since status volume" -- "$cur" ) )
COMPREPLY=( $( compgen -S = -W "ancestor before exited health id label name network since status volume" -- "$cur" ) )
__docker_nospace
return
;;