📦Image Tag
Also known as Docker Tag, Container Image Tag, latest Tag
The label after the colon in an image name. It often names a version.
Think of it like
Think of it like a label on a jar. The label says which batch is inside.
Example
Emma's server runs postgres:17. Version 18 is out, but her server stays on 17 until she changes the tag herself.
Why it matters
The tag decides what runs. Pinning a version stops a surprise update on the next pull.
Definition
Example code
bash
docker pull nginx:1.27Common mistake
Key takeaways
- 1After the colon. name:tag, such as nginx:1.27.
- 2Default is latest. Used when no tag is given.
- 3Tags can move. A digest pins one exact image.