Delete all stopped containers
docker container prune -fFrees disk on a build box. Each container's writable layer goes with it; volumes are kept.
One-line commands for Linux, Docker and Kubernetes, each with a short note on what it does and what it will change, so you can copy one and run it.
docker container prune -fFrees disk on a build box. Each container's writable layer goes with it; volumes are kept.
docker image prune -fOnly untagged layers left behind by rebuilds, so it is safe to run anywhere.
docker ps -q | xargs docker inspect \
--format '{{ .Name }} {{ range $net, $conf := .NetworkSettings.Networks }}{{ $net }}={{ $conf.IPAddress }} {{ end }}'For reaching one container from another by address. With nothing running, xargs still runs inspect and it errors — GNU xargs -r skips it.
kubectl get secret <name> -o jsonpath='{.data.<key>}' | base64 -dThe value lands in your terminal and its scrollback — not while screen sharing. macOS before Ventura spells it -D.
kubectl delete pods -A --field-selector=status.phase=FailedClears the Evicted rows left by node pressure. Their logs go too, so save anything you still need.
kubectl get secret <name> -o go-template='{{range $k, $v := .data}}{{$k}}: {{$v | base64decode}}{{"\n"}}{{end}}'One line per key, when you don't know what the secret holds.
find . -type f -exec du -h {} + | sort -rh | head -n 20Run it before deleting anything. du reports space on disk, so sparse files look smaller than ls says.
sudo ss -tulpnWithout sudo the process column is empty for other users' sockets, which reads as nothing listening.
journalctl -u nginx -fCtrl+C stops it. A service that writes its own log file will not appear here.