docker-completion

Shell completion for Docker commands in Bash, Zsh, and Fish

brewmacoslinux
Try with needOr install directly
Source

About

Bash, Zsh and Fish completion for Docker

Commands

docker

Examples

Enable Docker command completion in Bash shell$ source $(brew --prefix)/etc/bash_completion.d/docker
Use tab completion to autocomplete Docker subcommands$ docker run --[TAB] # completes available flags
Enable Docker completion in Zsh shell$ fpath=($(brew --prefix)/share/zsh/site-functions $fpath)