Hey everyone! I'm diving into Docker on Windows and have run into some compatibility issues. I initially tested Docker with a Windows 10 Enterprise host, but it seems to only support "-ltsc2019" images. Then, I tried with a Windows Server setup and found that it can only run "-ltsc2022" images. Is this limitation because the Windows kernel version on the host needs to match the one in the Docker image? Is there any way around this? I've already attempted using Docker with Hyper-V and WSL2, but the results were the same. Any insights would be greatly appreciated!
3 Answers
Exactly! Windows has strict requirements for kernel matching. Generally, Windows 10 maps to the 2019 kernel, while Windows 11 supports the 2022 version. If you're up for experimenting, you could try using the `--isolation=hyperv` flag, but keep in mind that it essentially runs a small VM, which can slow things down.
It does sound frustrating, especially if you expected to use the latest Windows versions for development. To check your Windows kernel version, you can run the command `winver` in the Run dialog (Windows + R) or use the `systeminfo` command in PowerShell. This will give you details about your OS, including the build version.
You're right about the kernel compatibility! In containerization, the containers use the host's kernel, which means you can only run Windows OCI images that match the major kernel version of your host. For example, images created for Windows Server 2016 won’t work on Server 2022, and vice versa. Unfortunately, there's no straightforward way to bypass this limitation.

Related Questions
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures