Docker Compose Profiles: Run Only What You Need
Profiles let you conditionally start services in Compose. Perfect for dev vs prod service splits without multiple files.
All the articles with the tag "containers".
Profiles let you conditionally start services in Compose. Perfect for dev vs prod service splits without multiple files.
docker system prune is useful but risky. Learn what each cleanup command does and how to check disk usage safely.
latest doesn't mean newest. Learn why pinning versions and digests matter for reproducible deployments.
Master Docker HEALTHCHECK syntax. Learn what checks work, how to tune interval/timeout/retries, and integrate with orchestration.
Running as root in containers is a security foot-gun. Learn the USER instruction and numeric UID/GID pattern.
Docker labels are free metadata for filtering, routing, and documentation. Learn label conventions and leverage them with filters and tools.
Layer caching is your build's BFF. Learn why copying files early kills the cache and how to fix it.
Decode Docker exit codes: 0 (success), 1 (app error), 125/126/127 (Docker errors), 137 (OOM), 143 (SIGTERM). Debug restarts in minutes.
Missing .dockerignore bloats build context, slows builds, and leaks secrets. Here's the one you should copy-paste.
Docker's default JSON logging driver writes unbounded logs to disk. Learn how to set log rotation and reclaim your storage.
PID 1 doesn't receive signals by default. Learn why Ctrl+C fails in containers and fix it with tini or exec form CMD.
daemon.json controls how the Docker daemon behaves — logging drivers, storage drivers, registry mirrors, and the options worth tuning.