Interview Prep/Docker/Security and scanning

Scan an image that is already deployed, without rebuilding it.

BeginnerScenarioSecurity and scanning
Answer

Situation read → New CVEs appear after deployment.

What I'd do → Scan by digest from the registry (trivy image reg/app@sha256:...), schedule daily scans in the registry (ECR enhanced scanning, Harbor, Docker Scout) and alert owners. Rebuild and redeploy when fixes exist.

Why → Vulnerabilities are discovered over time; images are static.

Interview tip → Track MTTR for patching images as a KPI.

All Docker questions Roadmap: Docker & containers

More on Security and scanning