latest tag
The tag Docker uses when you do not name one; despite the name, it is not guaranteed to be the newest image.
In more detail
latest is just a default tag name, moved whenever a publisher chooses. Deploying image:latest means two servers can run different code, and a rebuild can change what runs without any change on your side. Pin a version tag, or better a digest, for anything that matters.
Related terms
- tag — A human-readable label such as 3.20 or latest attached to an image in a repository, which can be moved to point at a different image.
- commit tag — An image tag made from the commit SHA that produced the image, so any running container can be traced to its source.
- digest — A SHA-256 hash of an image's manifest that identifies its exact content and can never be moved to other bytes.
- pinning — Fixing an exact version or digest of something you depend on so it cannot change without you noticing.
Taught in
- Building and Pushing Container Images — Continuous Integration & Continuous Delivery Pipelines
- FROM, WORKDIR, COPY And ADD — Docker Architecture & Production Containers
- Tags, Digests And Reproducible Image References — Docker Architecture & Production Containers