Add bash completion for service create|update --network-(add|rm)

Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: fa0f470a5f
Component: cli
This commit is contained in:
Harald Albers
2017-06-27 17:43:05 +02:00
parent 59836240bc
commit d4b74e4fd3

View File

@ -3154,6 +3154,8 @@ _docker_service_update_and_create() {
--host-add
--host-rm
--image
--network-add
--network-rm
--placement-pref-add
--placement-pref-rm
--publish-add
@ -3180,6 +3182,10 @@ _docker_service_update_and_create() {
__docker_complete_image_repos_and_tags
return
;;
--network-add|--network-rm)
__docker_complete_networks
return
;;
--placement-pref-add|--placement-pref-rm)
COMPREPLY=( $( compgen -W "spread" -S = -- "$cur" ) )
__docker_nospace