Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
5 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.

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...