Windows 11 docker image?

Hello,

We are looking for a Windows 11 Docker image to execute some command line tests. I found this microsoft-windows - Official Image | Docker Hub but all OS versions are Windows 10. Does any one know if there is a Win11 image?

Thanks!

The image repo you linked is for Windows Server images, not Windows 10. I don’t think you will find Windows 10 or Windows 11 Docker images. These operating systems are not for using them as a server and Docker doesn’t support GUI in Windows containers.

The numbers you could see on the linked page are the base Windows versions for the severs. This is almost at the beginning of the page in the “About” section

This is a base image for Windows Server containers

If you have a Windows 11 OS installed, try this from a Powershell:

[System.Environment]::OSVersion.Version

I have Windows 11 and my output is this:

Minor  Minor  Build  Revision
10     0      22631  0

So you will not find 11.

Hello rimelek,

Thanks for the reply.

The numbers you could see on the linked page are the base Windows versions for the severs. This is almost at the beginning of the page in the “About” section

I don’t know about it, and I got confused because the second sentence under “About” mentioned this image carries the Windows-based OS image. That’s why I thought this is capable of running as a Windows container.

I understand this image will not give me any GUI interaction. However, all we need to do is to make sure some command line tools work in such an environment (Windows 10/11), and we don’t care about GUI. So, I’d assume this is fine?

As for the OS version, thanks for the info; I never thought it that way! I checked Windows releases Windows 10 - release information | Microsoft Learn and Windows 11 - release information | Microsoft Learn. Seems that the oldest Windows 11 release build is 22000.194, so all these 19042 and earlier builds seem to be Windows 10 then.

Much appreciated!

I don’t actually know how these builds are versioned, but Windows 11 was released in 2021 and the Docker images are the base of Windows Server 2019, so maybe you are right about that Windows 11 has newer base, but I can’t confirm it.

I don’t know about the differences either. Depending on what you need to run, it could work on Windows 11 or not, but if you always want to run it in a container, then it shouldn’t matter… At least if the isolation method is “hyperv”. But you could also ask about it in a Microsoft forum where you could probably find more people who runs Windows containers and know how it works in practice. We have a few Windows container users here too, but not always around.

I guess if you want to run the commands outside containers directly on the Windows host, the vrsion of PowerShell could matter. I don’t know how much Windows versions change in new releases.

1 Like