How to create named and latest tag in Docker

0 votes
Assume I have an image that I wish to label with 0.10.24 (in my example, an image that contains Node.js 0.10.24). I created the image by using a Dockerfile, running docker build, and specifying a tag with the -t flag.

I intend to have more versions of that image in the future, so I'll repeat the process with a different tag name.

So far, everything has gone well. This works perfectly and everything is in order.

But, and this is where the troubles begin, I also want to have the most recent image tagged as well. So I guess I'll have to give the same image two names.

How do I go about doing this? Is there a better solution than re-running docker build on the exact same version, but this time with a different tag?
Apr 21, 2022 in Docker by pranav
• 2,590 points
695 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Docker

0 votes
1 answer

Create named and latest tag in Docker.

Here is what you can do to ...READ MORE

answered Oct 11, 2018 in Docker by Damon Salvatore
• 5,980 points
783 views
0 votes
1 answer

How to create a container and run images in docker?

Look for what all images you have ...READ MORE

answered Feb 23, 2019 in Docker by Kalgi
• 52,350 points
2,253 views
0 votes
1 answer
0 votes
1 answer

How to create a user-defined Bridge network in docker?

To create a user-defined bridge network, one ...READ MORE

answered Jul 3, 2019 in Docker by Sirajul
• 59,230 points
2,710 views
0 votes
1 answer

How to create customize jenkins image in docker?

Hi@akhtar, You can pull Jenkins image from docker ...READ MORE

answered May 18, 2020 in Docker by MD
• 95,460 points
1,603 views
0 votes
1 answer

How to create a secret in docker?

Hi@akhtar, In Docker, a secret is any blob ...READ MORE

answered Aug 17, 2020 in Docker by MD
• 95,460 points
730 views
+2 votes
1 answer
+2 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 58,020 points
2,739 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP