Browse Source

Add bash completion for DNS settings in services

Signed-off-by: Harald Albers <github@albersweb.de>
Harald Albers 8 years ago
parent
commit
28dc8c863a
1 changed files with 9 additions and 0 deletions
  1. 9 0
      contrib/completion/bash/docker

+ 9 - 0
contrib/completion/bash/docker

@@ -2643,6 +2643,9 @@ _docker_service_update() {
 	if [ "$subcommand" = "create" ] ; then
 		options_with_args="$options_with_args
 			--container-label
+			--dns
+			--dns-option
+			--dns-search
 			--env-file
 			--group
 			--hostname
@@ -2670,6 +2673,12 @@ _docker_service_update() {
 			--arg
 			--container-label-add
 			--container-label-rm
+			--dns-add
+			--dns-options-add
+			--dns-options-rm
+			--dns-rm
+			--dns-search-add
+			--dns-search-rm
 			--group-add
 			--group-rm
 			--image