Cleaning Up Docker Disk Space the Right Way
docker system prune reclaims space and can delete volumes you wanted. What each cleanup command removes, how to check usage first, and a safe script.
All the articles with the tag "containers".
docker system prune reclaims space and can delete volumes you wanted. What each cleanup command removes, how to check usage first, and a safe script.
ENV bakes secrets into image layers that docker history shows to anyone. Use BuildKit secret mounts, runtime variables, or a real secrets manager.
The latest tag does not mean newest, it means whatever was pushed untagged. Why that breaks reproducible deploys and how to pin versions and digests.
Build ARM64 and AMD64 images from one machine using Docker buildx. Setup, syntax, pushing multi-arch manifests, and when you actually need it.
Network aliases give a container more than one DNS name on a Docker network. Blue-green and canary deploy patterns, a Compose example, and the limits.
Master Docker HEALTHCHECK syntax. Learn what checks work, how to tune interval/timeout/retries, and integrate with orchestration.
Containers run as root by default, which is a real security problem. The USER instruction, numeric UID/GID, the volume mount gotcha, and distroless bases.
Docker labels are free metadata for filtering, routing, and documentation. Learn label conventions and leverage them with filters and tools.
Docker layer caching explains most slow builds. Why copying files too early kills the cache, the layer ordering that fixes it, and a multi-stage benchmark.
Decode Docker exit codes: 0 (success), 1 (app error), 125/126/127 (Docker errors), 137 (OOM), 143 (SIGTERM). Debug restarts in minutes.
A missing .dockerignore bloats build context, slows every build, and leaks secrets into images. One you can copy-paste, plus how to check context size.
Docker's default JSON logging driver writes unbounded logs to disk. Learn how to set log rotation and reclaim your storage.