Command cheat sheet
Extracted from the master document on 2026-09-04. The §N numbering is kept so cross-references are not broken.
Appendix A — Command cheat sheet
Section titled “Appendix A — Command cheat sheet”# --- Docker / Compose ---------------------------------------------------docker ps # live containersdocker ps -a # including stopped onesdocker ps --format "table {{.Names}}\t{{.Status}}\t{{.Ports}}"docker logs <container> --tail 50docker inspect -f '{{json .NetworkSettings.Networks}}' <container>docker network lsdocker volume lsdocker stats --no-stream
docker compose config --quiet # validate WITHOUT printing secretsdocker compose up -d # reconciles with the compose filedocker compose up -d --build # and also rebuilds the imagedocker compose psdocker compose logs --tail=100docker compose restart # restarts what already existsdocker compose stop / down
# --- Caddy --------------------------------------------------------------sudo docker compose exec caddy caddy fmt --diff /etc/caddy/Caddyfilesudo docker compose logs caddy --tail 100
# --- Storage ------------------------------------------------------------lsblk -o NAME,SIZE,MODEL,FSTYPE,MOUNTPOINTSsudo blkid /dev/sdb1findmnt /mnt/storagedf -h /mnt/storagefree -h # look at `available`, not the %sudo systemctl daemon-reload && sudo mount -a # after editing /etc/fstab
# --- Proxmox ------------------------------------------------------------sudo pve-firewall statussudo /usr/sbin/qm listsudo /usr/sbin/qm config 100sudo pvesm extractconfig local:backup/<archivo>.vma.zstsudo qmrestore <ruta>.vma.zst <nuevo-vmid> --storage local-lvm
# --- Backup -------------------------------------------------------------sudo RCLONE_CONFIG=/etc/rclone/rclone.conf rclone lsd secure:sudo -u borg env BORG_PASSPHRASE="$BORG_PASSPHRASE" borg list <repo>sudo sqlite3 <db> 'PRAGMA integrity_check;'The difference people forget: docker compose restart restarts the
existing containers; docker compose up -d reconciles the state with
the Compose file and may recreate them if the configuration changed.