Command-line completion

I’m looking for command-line completion for Linux’s bash for docker command.

I found following documentation(s) that covers command-line completion for docker-machine and docker-compose, however not docker command.

Please advise.

I’m also looking for an answer for this question.

You may want to try the Bash & Zsh autocomplete scripts at https://github.com/docker/cli/blob/master/contrib/completion

Incidentally, the Docker for Mac installation seem to already includes those files … https://docs.docker.com/docker-for-mac/#install-shell-completion