curl https://raw.githubusercontent.com/docker/cli/master/contrib/completion/zsh/_docker > _docker
A copy of the completion script from the docker git repo.