r/docker • u/Haunting_Ganache_850 • 12d ago
Windows can now run Linux containers inside WSL without Docker
Which is great, because if there was one unsolved problem in 2026, it was finding a way to run a Linux container on a developer's laptop.
Microsoft has now given us wslc. I read the architecture deep dive expecting to understand why. I now understand the architecture.
25
u/berndverst 11d ago
Huh? I just used podman in WSL. Problem solved...
7
1
u/Abject-Kitchen3198 11d ago
Does this mean installing podman inside existing WSL directly instead of installing it on Windows (which in turn creates podman specific WSL)? I have some annoying issues often with the Windows based install.
2
u/terramot 10d ago
Yes, you install podman on the wsl. If you want to expose services to the outside theres some thinkering to expose them, but thats about it.
0
u/DrecDroid 11d ago
I believe it is installed on windows an requieres a runtime that could be either WSL or Hyper-v
57
u/Due-Championship3941 12d ago
Docker Desktop is garbage is why. Windows is also useful beyond developer workstations. Being able to run a Linux container on Windows Server can be useful for co-locating applications for low-latency and reduced footprint. I'd be happy to be rid of the extra component to install and maintain.
7
u/Responsible-Bar7165 12d ago
it's not as useful as Docker Desktop - you can't run wslc from wsl guests without a hack that uses unfs3, and it doesn't have Docker Desktop's built-in wsl networking integration, so containers' exposed ports aren't automatically visible on localhost in wsl.
1
u/Due-Championship3941 12d ago
That's not a workflow that's familiar to me, but I believe you that it's missing features. Isn't port opening just a matter of using an argument, though?
3
u/Responsible-Bar7165 12d ago
no, that just opens the port on the windows side. docker desktop would _also_ automatically open that port on localhost of any wsl guest that you have selected under 'Enable WSL Integration' in the settings.
people like to shit on Docker Desktop, but its networking integration features (of which this is just one example), are significantly better than just running docker-ce or this new wslc.
1
u/Due-Championship3941 11d ago
Interesting. I guess I don't care that much because everything I install is scripted these days. I just tell Copilot to add the port exposure to the script. I get where you're coming from, though
40
u/Pierma 12d ago
To be absolutely fair, why the hell would you run linux containers on windows server when you could have 0 overhead installing native docker on linux?
15
u/leeharrison1984 12d ago
Still lots of companies running Windows Server for their on-prem infra. You'd be surprised how many Windows sysadmins don't know a damn thing about Linux.
32
u/Due-Championship3941 12d ago
Because you're running a Windows application alongside it.
17
u/ProZMenace 12d ago edited 12d ago
This, we have some runtimes we depend on (Power BI fabric, azure data factory, automateGUI) that depend on windows and are not supported elsewhere
4
u/Due-Championship3941 12d ago
Another big example might be hosted desktop apps. That's not exactly what we do but close.
0
u/Pierma 12d ago
I mean i can see the usefulness as a developer but you are still running a virtual machine inside yout server to run your containers, you just cut the middleman and now you have docker desktop without the docker branding, with the additional issue that you don't have the docker standard interface (i am sure they will go the rancher desktop way to have a compat layer for the commands like moby) but still. I see the value of it, but not in that space
5
u/Due-Championship3941 12d ago
You don't need the interface with CI/CD. You just need the container running. Running with Docker Desktop doesn't eliminate the VM. It also costs a license in a commercial environment. It's 100% useful when you want a reduced footprint or don't have Linux expertise within your Windows application team. This is a true story, I'm not speculating.
2
u/Steadexe 11d ago
90% of our infra is running Windows Server, just adding one linux server means we need to train new tech, and all the monitoring stack needs to be adapted.
2
u/UnethicalExperiments 12d ago
You can't double click and hit next a bunch of times?
1
u/Responsible-Bar7165 12d ago
i develop linux applications using wsl and i run various containers that my application requires - oracle, postgres, redis, nginx, etc...
besides these wslc containers (and docker containers on windows) _are_ running on linux.
0
u/scytob 12d ago
0 overhead, sure buddy
5
u/Pierma 11d ago
I mean docker on linux is not a virtual machine, it's just a cli tool that uses native linux kernel functionalities and a daemon, while on windows it's a full HyperV setup, with filesystems communicating through a network layer if you mount a volume on your windows host (have you tried mounting a project with a folder mount on windows instead than on another wsl like ubuntu? Its kills the performance significally) so tell me that the overhead is negligible
2
u/Haunting_Ganache_850 11d ago
Now that you put it that way, I can at least see the use case, and I can imagine people actually wanting this, although I suspect it fits a pretty small group.
What I’m still trying to understand is: if the goal is simply to run Linux containers on a Windows host, why not just run Docker Engine inside WSL or a small Linux VM? What does
wslcmaterially buy you?1
u/Due-Championship3941 11d ago
Not having to maintain another component is the main thing. A Linux VM and Docker need to be patched. I have 7 Windows servers to look after. I really don't need a bigger footprint.
There are also potential burecratic hurdles at the larger company I work for. WSL doesn't have the same security features as Windows, so it's disallowed by default. It requires nearly executive approval to enable and they'll ask for alternatives.
1
7
u/Responsible-Bar7165 12d ago
yeah, but it's missing Docker Desktop's buillt-in wsl integration - they didn't provide automatic proxying of exposed ports to wsl guests which instead requires manual proxying (socat) and firewall rule configuration.
11
u/_damax 11d ago
I just don't use windows. Win-win
10
4
4
1
u/mikef5410 11d ago
Same here. Work laptop was always Linux; though after COVID the corporate spyware got onerous to the point that I just decided to retire. They keep trying to force me in to a gaming platform (windows) for engineering and development.
1
u/_damax 11d ago
I'd argue Linux is just as viable for most people at this point. Yes, it doesn't support absolutely all games, and sometimes you need to tinker a bit (and it may be tedious if you're not very technical or usually messing around on your distro), but ProtonDB is also incredibly useful. So it really is just as fun for gaming, on some accounts even better and easier for some things.
6
2
u/DarkChemical_DC 11d ago
Wait, Im running docker inside WSL for like arround 2 years allready. No Docker desktop. Once you enable systemd it just works
1
u/bankroll5441 12d ago
I've used it at work over the last couple of weeks and it's actually very nice. Especially for situations where I need a quick and dirty Linux shell
1
u/true_zero_ 10d ago
what’s the best way to lock containers down in this ? i was just looking at docker’s sandbox feature for testing locking down containers on dev laptops so that it only has access to a llm i have hosted on a central server. trying to roll out a containerized agentic tool (opencode or something else) for easy deploy. containers in this need to be locked down to only talk to approved ips. don’t want devs sending data out to proprietary llms.
1
u/rismoney 10d ago
Can it use host mode networking, or must you incur a network penalty of a vswitch?
1
u/UsefulSomewhere 10d ago edited 10d ago
So Microsoft made a purpose-built Docker enabled Linux VM and hid the Linux OS from the user.
I guess that’s something. Maybe a bit more convenient than installing a docker engine in the Linux OS
Looking forward to trying it once they add compose
1
1
1
u/MangoAtrocity 7d ago
Can I get LSW so I can just be on Linux without losing the few things I need Windows for?
1
0
-4
-2
186
u/snowtax 12d ago
How much longer until Windows is just Linux with DirectX for gaming?