From e8c67e8d8d8d4570d78e21eae02451f27a372f83 Mon Sep 17 00:00:00 2001 From: Harald Albers Date: Mon, 6 Jun 2016 10:01:15 +0200 Subject: [PATCH] fix bash completion for dockerd with path Signed-off-by: Harald Albers --- contrib/completion/bash/docker | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/completion/bash/docker b/contrib/completion/bash/docker index 3e2d4cc83b..20368382eb 100644 --- a/contrib/completion/bash/docker +++ b/contrib/completion/bash/docker @@ -2319,7 +2319,7 @@ _docker() { done local binary="${words[0]}" - if [[ $binary == dockerd ]] ; then + if [[ $binary == ?(*/)dockerd ]] ; then # for the dockerd binary, we reuse completion of `docker daemon`. # dockerd does not have subcommands and global options. command=daemon