Docker and CI/CD · Middle · Question 49 of 75
Why tag images with the commit SHA?
- 1It makes the image smaller than a version tag
- 2Registries require a hash in every tag name
- ✓Correct answer: Each image maps to exact code and is never overwritten
Explanation
my-app:3f2a9c1 tells you what's running and makes rollbacks precise. Version tags like 1.4.0 can be added for releases.