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?