summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarald Albers <github@albersweb.de>2016-07-26 04:45:57 -0700
committerTibor Vass <tibor@docker.com>2016-07-27 14:51:41 -0700
commit55b920c98886772703fd53cbf8409e3d9b8a49df (patch)
treeaf6053d363391635ba1712b11c7485d20834a43c
parent1f33c33fbe9a6a95fd73359175e8f8d70cd36fd9 (diff)
downloaddocker-55b920c98886772703fd53cbf8409e3d9b8a49df.tar.gz
bash completion for container labels to `service {create,update}`
Signed-off-by: Harald Albers <github@albersweb.de> (cherry picked from commit 13c138ec2a896a87da8fa81693975e7ffbec85fd) Signed-off-by: Tibor Vass <tibor@docker.com>
-rw-r--r--contrib/completion/bash/docker3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/completion/bash/docker b/contrib/completion/bash/docker
index 764c10ba4b..32e849b367 100644
--- a/contrib/completion/bash/docker
+++ b/contrib/completion/bash/docker
@@ -1741,6 +1741,7 @@ _docker_service_update() {
if [ "$subcommand" = "create" ] ; then
options_with_args="$options_with_args
+ --container-label
--mode
"
@@ -1754,6 +1755,8 @@ _docker_service_update() {
if [ "$subcommand" = "update" ] ; then
options_with_args="$options_with_args
--arg
+ --container-label-add
+ --container-label-rm
--image
"