Container and Kubernetes security, topic 37 of 70
Image security and scanning
An image carries an operating system's worth of packages, each a possible vulnerability. Start from a small, maintained base, such as a slim or distroless image, rebuild often to pick up fixes, and leave build tools out with multi-stage builds.
Scan images with Trivy or Grype in the pipeline and again in the registry, since new vulnerabilities are found in old images every day.
On Opsfolk
Nothing of ours for this topic yet: an article is on its way.
Elsewhere
- Trivy documentationOfficial
- Docker build best practicesOfficial