Docker and CI/CD · Middle · Question 13 of 75
How is an image digest different from a tag?
- 1A digest is a shorter, human-friendly alias of a tag
- ✓Correct answer: A digest is a content hash and never changes; a tag can be moved
- 3Tags are immutable, while digests change on each pull
Explanation
node:22@sha256:... always resolves to the same bytes. Deploying by digest guarantees you run exactly what was tested.