Merge pull request #23299 from albers/completion-dockerd-path
fix bash completion for dockerd invoked with path Upstream-commit: 4b2b5214a46563caedab0c30314fe2c0e8849516 Component: engine
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user