Skip to content

Tag: docker

All the articles with the tag "docker".

The .dockerignore File You're Not Writing

The .dockerignore File You're Not Writing

· Updated:

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.

Why Your Docker Container Ignores Ctrl+C

Why Your Docker Container Ignores Ctrl+C

· Updated:

PID 1 in a container ignores signals, so Ctrl+C does nothing and stops take 10 seconds. Fix it with exec form CMD or tini, ranked best to worst approach.

Docker Volume Mounts: Essential Flags

Docker Volume Mounts: Essential Flags

· Updated:

The -v and --mount flags for Docker volumes explained, bind mounts vs named volumes, read-only, propagation, and tmpfs options.