From the course: Windows Server 2019: Deploying Containers

Unlock the full course today

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

Understand tags

Understand tags - Windows Server Tutorial

From the course: Windows Server 2019: Deploying Containers

Start my 1-month free trial

Understand tags

- [Narrator] Now let's talk briefly about tags. You do see here in this output there's a column for tags. And we've talked a little bit about tags off and on, an image can have multiple tags. In this case it looks like every image ID has only one tag. But what if we want to use the docker tag command? If we just type that in by itself it tells us that docker tag requires two arguments: a source image, an optional tag, and a target image, an optional tag. So this will create a target image that refers to the source image, and each of those can have optional tags. Let's try this out. If we do a docker tag, and then let's type in mcr.microsoft.com/windows/servercore/iis:latest and let's just tag this with iis:v1 and let's see the results of that. The very first image here that's listed is simply called iis and it has a tag of v1 and you can see that the image ID maps to the windows servercore iis latest image. So we created a new image with a new tag but which points to the same image ID…

Contents