I'm looking for a way to run a Docker container on a Windows Server 2025 virtual machine without using Windows Subsystem for Linux (WSL) or setting up a hypervisor. Is there any software that can mount images in a way that doesn't count as 'nesting' on my server?
6 Answers
I actually made a script to set up Docker via WSL. You can find it on GitHub if that helps! But just a heads-up, it does involve WSL, which you mentioned you want to avoid.
I'm guessing you're aiming to run Linux containers on your Windows Server VM. Unfortunately, that's not happening. Containers rely on the host OS for basic operations, so you can't run Linux containers natively on Windows Server without a Linux VM.
There's a slim chance you could get it working with QEMU, but honestly, the performance would likely be pretty poor, so I'd recommend against going that route.
You can install the Docker engine directly on Windows Server 2025, but it will only work with OCI images that are specifically built for that Windows version.
You might hear about this rare Windows update called "Ubuntu." It sounds odd, but worth a look if you're desperate for a solution!
The only option really is to use Windows containers, but they're quite rare and not many applications support them, aside from stuff like MSSQL Server. Still, your setup might flag it as nesting, so be cautious.

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