I am running docker and I want bash
command completion for docker
commands and parameters.
Just to be said:
if you use brew:
brew install docker
will do all what you need. It includes brew link docker
which installs the completion into `brew --prefix`/etc/bash_completion.d/docker
same topic, same answer for docker-machine
, docker-compose
, etc. ...
else (perhaps you are using Docker Beta (new "more native" docker installation package without Virtualbox) you still have to add it manually, then follow Michael's answer plus have a look at the additional completion scripts for docker-machine, docker-compose and some shell-helper that are handled in the 'script' from CodeCorrupt