In this blog post, I show you how I update my Windows Server Core 2019 Container image to the latest image version.
Windows Server team releases a new Windows Server cotainer image every few days and it imortant to stay up to date with the image version.
The Container image updates, contain up to date security updates, bug fixes and image optimization code.
To get started, I have Windows Server 2019 Container host running Windows containers with Windows Server 2019 image.
Using the docker command below, I can check the current image version:
As you can see above, my Windows Server Core image is 5 weeks old.
To update my image to the latest version I run:
docker pull mcr.microsoft.com/windows/servercore:ltsc2019
Durring the update proccess Docker downloads the image layers that need to be updated and in my case there is 370MB of image data the need to be downloaded.
Once downloaded Docker extracts the layers and completed the process.
To view the new image details I run:
In the above screen, you can see that docker updated the new version and made kept the old one, the big diffrance is that the tag was removed from the old image and placed on the new one.