Why is deploying by digest better than by tag?
IntermediateProductionRegistries, Tagging & Supply Chain
Answer
A tag can be re-pushed (accidentally or maliciously), so two nodes may run different code under the same name. A digest identifies exact content, making rollbacks, audits and caching deterministic. Use image: app@sha256:... (optionally app:1.4.2@sha256:... for readability; the digest wins).
More on Registries, Tagging & Supply Chain
What is a good image tagging strategy for production?BeginnerHow do you enable immutable tags and lifecycle rules in ECR?IntermediateHow does ECR handle scanning and replication?IntermediateHow do you give an EKS node or CI job access to ECR with least privilege?IntermediateDocker Hub vs ECR vs GHCR vs Harbor: how do you choose?IntermediateHow do you set up a pull-through cache for Docker Hub?Intermediate