Merge pull request #23299 from albers/completion-dockerd-path

fix bash completion for dockerd invoked with path
This commit is contained in:
Vincent Demeester 2016-06-06 13:40:15 +02:00
commit 4b2b5214a4

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