Docker Quickie (I)

Bash completion for the docker compose plugin can be easily future-fitted.

Docker Quickie (I)
Photo by Philippe Oursel / Unsplash

Docker Compose is now part of Docker CLI as a plug-in. But the Ubuntu installation is dreadfully missing bash completion for the new compose sub-command.

The issue is being addressed upstream in Docker Compose Issue #8550. Luckily sebaspf is pointing out a nice intermediate solution until the pull request reaches the repository:

curl -L https://raw.githubusercontent.com/docker/cli/master/contrib/completion/bash/docker \
   -o /usr/share/bash-completion/completions/docker