Docker Community Forums

Share and learn in the Docker community.

Command-line completion

docker

(alexus) #1

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.


(Rstokic) #2

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


(Valencez17) #3

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