DELAPARRA
Index
Color
NL
Category: Docker

tag

Explained by Updated

What is tag?

tag: A human-readable label on an image, usually a version. The part after the colon in name:tag. Defaults to "latest" if omitted. A Docker tag is the readable label after the colon in an image name, such as 1.4.2 in myapp:1.4.2. Without a tag, Docker assumes latest. Tags are pointers, not guarantees. The same tag can be moved to a new image at any time, which is why latest says nothing about what is actually inside. Two servers pulling myapp:latest an hour apart can end up running different code.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about tag

What should you keep in mind with tag?

Use meaningful, unique tags for anything you deploy: a version number, a Git commit hash, or both. Then you always know what runs where, and rolling back means deploying the previous tag. One image can carry several tags at once, such as 1.4.2, 1.4 and stable. For complete certainty, deploy by digest, which never changes.

What does an example of tag look like?

docker tag myapp:1.0 myapp:stable

At a glance

CategoryDocker
Explained by
Updated

More Docker terms

All terms starting with T

Skills

Download all skills (zip)

Manuals

Related services

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.