From the course: Cloud Native Development with Node.js, Docker, and Kubernetes

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Tagging and version control

Tagging and version control

From the course: Cloud Native Development with Node.js, Docker, and Kubernetes

Start my 1-month free trial

Tagging and version control

- [Instructor] Up to this point, we've been tagging our Docker images with a name, but we haven't been versioning them, and that means they're given the default tag of latest. We can see that using docker images. Here, our nodeserver-run and our nodeserver-tools are tagged with latest. If you remember, the nodeserver community itself has tagged one of their images as 10-slim, and these tags can actually be anything that you like in terms of text, but the best practice is to use some antique versioning. And that means you have three numbers, major, minor, and fix level, to state the version of the image that you have created. We'll use the docker tag command to tag our images. Docker tag lets you take a source image and give it a new name and an optional tag level. Let's start by taking our run image and giving it a version of 1.0.0. To do that we type docker tag nodeserver-run and then tag it as nodeserver:1.0.0. Now if we look at docker images, we have a nodeserver 1.0.0 and you'll…

Contents