This plugin adds auto-completion for docker.
To use it add docker to the plugins array in your zshrc file.
docker
plugins=(... docker)
A copy of the completion script from the docker/cli git repo.