Docker Completion on Raspberry Pi

It gives your shell intelligent, context‑aware TAB‑completion for everything Docker can do.

🎯 Faster command entry

You don’t have to remember full commands anymore.

Type:

docker co<TAB>

Your shell fills in:

docker compose

🎯 Automatic flag sugestions

You don’t need to memorize long flags.

Type:

docker run --r<TAB>

You instantly see valid options like:

--rm
--restart
--read-only

🎯 Auto‑completion of container names

This one is big for me: No more typing long container names or running docker ps just to copy/paste.

Type:

docker logs <TAB>

You'll see all your containers listed:

arcane-agent                      docker-socket-proxy-prunemate     immich_server                     netalertx                         syncthing
beszel-agent                      glances                           investment-tracker                netspeed-web                      tailscale
booktracker                       immich_machine_learning           jellyfin                          nut-client                        watchtower
buildx_buildkit_cluster-builder0  immich_postgres                   mybibliotheca                     plex                              
buildx_buildkit_cranky_noyce0     immich_redis                      navidrome                         portracker  

Now you can type d<TAB> and it will complete to docker logs docker-socket-proxy-prunemate. Or in<TAB> and it will complete to docker logs investment-tracker.

🚀 Docker Completion Installation Steps

There's nothing to install. Just run this:

BASH

docker completion bash > /etc/bash_completion.d/docker

and reload your shell:

source ~/.bashrc

ZSH

docker completion zsh > ~/.zsh/completions/_docker

and reload your shell:

source ~/.zshrc

That's it.

More detailed instructions are here

If you find my content useful, please consider supporting this page:

☕ Buy Me a Coffee