Interview Prep/Docker/Registries, Tagging & Supply Chain

What is a good image tagging strategy for production?

BeginnerProductionRegistries, Tagging & Supply Chain
Answer

Immutable tags per build (git-<sha> or build number) as the source of truth, semver tags on release (1.4.2, 1.4, 1), environment tags only as pointers if at all, and never deploy latest. In GitOps, record the digest. Enable tag immutability in the registry for release tags.

All Docker questions Roadmap: Docker & containers

More on Registries, Tagging & Supply Chain