1
0
mirror of https://github.com/docker/cli.git synced 2026-01-16 20:22:36 +03:00

fix bash completion for dockerd with path

Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 83e27e1f93
Component: cli
This commit is contained in:
Harald Albers
2016-06-06 10:01:15 +02:00
committed by Tibor Vass
parent 744bf7d726
commit 0da04bb059

View File

@@ -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