Docker: How to Retag an Image

Updated: November 13, 2021 By: Napoleon Post a comment

You can retag a Docker image referenced by name and tag as follows:

docker tag old-tag new-tag

Example:

docker tag webserver:old kindacode/webserver:new

You can also tag/retag an image with its ID:

docker tag <image-ID> <my-image-name:tag>

Further reading

You can also check out our Docker topic page for the latest tutorials, examples, tips, and tricks.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments

Related Articles