docker tag
Gives an existing image an extra name and tag; no data is copied.
In more detail
Use it to add a registry name before pushing or to mark a tested image as a release. Both names point at the same image ID.
Example
docker tag taskapi:0.1 registry.example.com/team/taskapi:0.1Related 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.
- docker push — The command that uploads a local image to a registry.
- image promotion — Moving the exact same, already-tested image through environments, such as staging to production, without rebuilding it.
Taught in
- Container Images The Exam Way — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Tags, Digests And Reproducible Image References — Docker Architecture & Production Containers
- Authenticate, Tag, Push And Pull From A Registry — Docker Architecture & Production Containers