How do you pick a base image for production?
BeginnerProductionImage Security & Hardening
Answer
Criteria we use: minimal and maintained (official, Chainguard, Distroless, Red Hat UBI), glibc compatibility with our binaries (avoid Alpine for Python/ML wheels), frequent patching cadence, long-term support tag, and signed images. We standardize on two or three approved bases in a platform team's "golden image" repo so patching is centralized.
More on Image Security & Hardening
Why should containers not run as root, and how do you enforce it?BeginnerWhat is a distroless image and what are the trade-offs?BeginnerHow do you scan an image with Trivy and fail a CI build on serious findings?BeginnerHow do you manage Trivy false positives and accepted risks?IntermediateWhich `docker run` flags make up a hardened runtime baseline?BeginnerWhat does `no-new-privileges` protect against?Beginner