Interview Prep/Docker/Registries, Tagging & Supply Chain

How do you verify that the image you tested is the image running in prod?

AdvancedProductionRegistries, Tagging & Supply Chain
Answer

Compare digests end-to-end: CI outputs the digest, GitOps manifest pins it, cluster reports imageID in status.containerStatuses. On Docker hosts docker inspect -f '{{.Image}}' c gives the image ID and RepoDigests the manifest digest. An admission controller can reject anything unsigned or not matching a promoted digest.

All Docker questions Roadmap: Docker & containers

More on Registries, Tagging & Supply Chain