Interview Prep/Docker/Security and scanning

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.

All Docker questions Roadmap: Docker & containers

More on Security and scanning