docker
Short aliases for the docker CLI plus version-aware completion. With every StumpCloud service running as a container, these are daily drivers — the incident-triage set especially:
| Alias | Runs |
|---|---|
dps / dpsa | docker ps / incl. stopped containers |
dlo | docker container logs |
dxcit | docker container exec -it (shell into a container) |
drs | docker container restart |
dcin | docker container inspect |
dsts | docker stats |
dsprune | docker system prune |
dipru | docker image prune -a |
Pro tips
- Wedged-container triage in four aliases:
dpsa(is it running/restarting/ exited?) →dlo <name> --tail 100(why?) →dxcit <name> sh(poke inside) →drs <name>. This is the OMG-response loop;dcin <name>when you need restart counts, OOM kills, or mount details. dpsaoverdpsduring incidents — a crash-looping or exited container is invisible to plaindps, and "it's not indocker ps" is the diagnosis half the time.- Prune carefully on storage-constrained nodes:
dspruneis the safe default (stopped containers, dangling images, unused networks).dipru(image prune -a) also deletes every image not attached to a running container — fine, but the nextdocker compose pullre-downloads them.dvprunedeletes unused volumes: on a Compose host that can be real data, so read its list before confirming. dstsis the "which container is eating the node" command — live CPU/memory per container, no setup.- Completion tracks your Docker version: ≥23 uses
docker completion zsh, regenerated in the background and cached in$ZSH_CACHE_DIR/completions.