Enforce that only signed images from your registry can run on hosts.
AdvancedScenarioSecurity and scanning
Answer
Situation read → Docker Engine alone has Docker Content Trust (Notary v1) which is legacy.
What I'd do → In Kubernetes use an admission policy (Kyverno verifyImages, Sigstore policy-controller, Ratify/Gatekeeper). On standalone hosts configure containerd/Podman policy.json with sigstoreSigned requirements and restrict registries.
Why → Enforcement must happen at pull/admission time, not in docs.
Interview tip → Mention that DCT is deprecated in favor of Sigstore/cosign.
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