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.
More on Security and scanning
A scan reports 300 CVEs in your base image. How do you triage?IntermediateAdd vulnerability scanning to CI so critical findings block the merge.BeginnerWhy is mounting `/var/run/docker.sock` into a container dangerous?IntermediateA developer asks for `--privileged`. What do you do?IntermediateHarden a container run command for a stateless web API.IntermediateA pentester got root inside a container. How bad is it?Advanced