Interview Prep/Docker/Security and scanning

Choose a base image strategy for security across the company.

AdvancedScenarioSecurity and scanning
Answer

Situation read → Hundreds of images, inconsistent bases.

What I'd do → Standardize on minimal maintained bases (distroless, Chainguard, Docker Hardened Images, or Alpine/Debian slim), mirror them, rebuild nightly, sign, SBOM and attach attestations. Block unapproved registries in admission control.

Why → Fewer packages mean fewer CVEs and faster patching, and a central pipeline gives one patch point.

Interview tip → Explain the tradeoff: debuggability versus attack surface.

All Docker questions Roadmap: Docker & containers

More on Security and scanning