Back

Explore Courses Blog Tutorials Interview Questions
0 votes
3 views
in DevOps and Agile by (2.3k points)

How can I tag an image in docker?

1 Answer

0 votes
by (6.9k points)

You can do this in two ways:

You can use this command

$ docker tag SOURCE_IMAGE[:TAG] TARGET_IMAGE[:TAG]

or

You can use this command:

$ docker image tag SOURCE_IMAGE[:TAG] TARGET_IMAGE[:TAG]

Hope this helped :)


So if you want to learn more about how docker images work and how you work with them and other important docker features try out docker training course.

Browse Categories

...