There is no simple and built-in way to install the completion scripts (see [the bash script installation](https://github.com/docker/cli/blob/master/contrib/completion/bash/docker#L20)). A better way would be to output the scripts with a docker command, like [kubectl does](https://kubernetes.io/docs/tasks/tools/install-kubectl/#enabling-shell-autocompletion): ```sh $ docker completion bash ... # install the zsh completion $ echo "source <(docker completion zsh)" >> ~/.zshrc ```