How To Update Docker Windows Containers Image

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.

Get Started

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:

docker images

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:

docker images

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.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.