Interview Prep/Docker/Registries, Tagging & Supply Chain

How do you promote images across environments safely?

IntermediateProductionRegistries, Tagging & Supply Chain
Answer

Build once, test, and promote the same digest: copy between registries with crane copy or skopeo copy --all (preserves multi-arch), or add environment pointers/tags. Never rebuild for prod; rebuilding can pull different dependencies and invalidates test evidence. Record promotion in Git for audit.

crane copy dev.reg/app@sha256:abc prod.reg/app:1.4.2
All Docker questions Roadmap: Docker & containers

More on Registries, Tagging & Supply Chain