How to use
Run this checklist on every container image before it ships to
production. Items in critical severity must be addressed; the
build should fail CI if any are missing.
For Compose-based stacks, run the checks against the resolved
container state after docker compose up.
Why these checks
The critical items address the most likely paths to a container-compromise incident:
- Non-root, capabilities dropped, no-new-privileges, no socket mount. Limits the blast radius of a vulnerability inside the container.
- Pinned digest, signed image, clean scan. Ensures the image is what we say it is and has no known critical CVEs.
- No secrets in env. Stops credential leakage through
docker inspect,ps, and child processes.
The warn items are best-practice discipline: not blocking, but the production baseline assumes them.