Interview Prep/Docker/Security, rootless, Podman and containerd

Trivy/Scout reports a CVE in a package your app does not use.

IntermediateTroubleshootingSecurity, rootless, Podman and containerd
Answer

Likely causes → Package present in the base image; may be unreachable or unfixed.

Diagnose →

trivy image --severity HIGH,CRITICAL --format json app | jq '.Results[].Vulnerabilities[]? | {PkgName,InstalledVersion,FixedVersion}'
docker run --rm --entrypoint sh app -c 'apt list --installed 2>/dev/null | head'

Fix → Remove the package, switch to slimmer base, update base, or document VEX/ignore with expiry.

Prevent → Minimal bases; scan on a schedule.

All Docker questions Roadmap: Docker & containers

More on Security, rootless, Podman and containerd