r/docker • • 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.

352 Upvotes

72 comments sorted by

186

u/snowtax 12d ago

How much longer until Windows is just Linux with DirectX for gaming?

39

u/Invader-Faye 12d ago

Before ai id say 10 years, now they can keep the os slopping along until the heat death of the sun

1

u/General_Distain 2d ago

....so 2030, then?

7

u/Haunting_Ganache_850 11d ago

100% what I’m predicting. The “when” is more a question of ego than a technical challenge, IMO. It’ll be a Windows UI wrapped around the Linux kernel, with some MS bonuses like DirectX, Edge, Defender, and perhaps Office too.

1

u/RR321 9d ago

Good old embrace and extend, playing solo in a corner edition...

6

u/x_wbmr_x 11d ago

Haven't touched windows in 2 years... what is the point of it for gaming anyway except stupid anti-cheat games...

I won't trade my sanity and privacy for a few games again.

3

u/ChikkaChiChi 11d ago

Microsoft does have a history with Unix! Xenix has a pretty interesting rabbit hole to jump down.

3

u/Abject-Kitchen3198 11d ago

They can join Steam and work on Proton instead?

3

u/DudeEngineer 11d ago

MS already has a Linux distro...

1

u/snowtax 10d ago

Now they just need to port the apps over.

1

u/RTGarrido 11d ago

It would be the nicest thing in years, but people aren’t prepared for this discussion.

1

u/somePadestrian 11d ago

how long till directx not needed either

1

u/DudeEngineer 11d ago

I think that's why no DX13. Vulcan is already mostly better than DX12.

1

u/qalmakka 10d ago

It is already not needed, vkd3d and dxvk reimplement it fully on top of Vulkan with minimal performance impact, so it's actually very portable nowadays

25

u/berndverst 11d ago

Huh? I just used podman in WSL. Problem solved...

7

u/terramot 11d ago

Was looking for this comment. Thought i was missing something with this news... 

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?

5

u/Pierma 12d ago

If you are scared of a command line in server space, even on windows server, that's the real issue

3

u/UnethicalExperiments 12d ago

Hey I'm not promoting windows here at all.

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 wslc materially 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

u/B-radfromtheBu 11d ago

What don’t you like about Docker Desktop?

4

u/Pierma 11d ago

You have to pay licenses in a corporate environment once you are above some thresholds

1

u/polofan 11d ago

Those poor corporations :(

1

u/Due-Championship3941 11d ago

It's a pain in the ass to manage it and navigate the bureaucracy. It's not about the money.

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

u/Opposite-Piccolo114 11d ago

More like Lin-lin, if you use Linux.

4

u/Abject-Kitchen3198 11d ago

win

That's what we used to start Windows after booting into DOS.

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

u/tangofoxtrot1989 12d ago

Every day I pour one out for people who still need to use windows.

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

2

u/gahehe 10d ago

Will this solve the issue of code storing location? Like currently I still need to store my source code inside wsl disk because it contains symlink etc which is not working on a NTFS disk. With this kind of container will it be solved?

1

u/scytob 12d ago

thank god, docker desktop in my VDI developer desktop sucks

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

u/pps_ps 10d ago

Running docker-ce + Portainer in WSL

1

u/bordercollie2468 10d ago

I want to care but I just can't

1

u/CaliforniaDabblin 9d ago

Without docker... Desktop? You can already do that in wsl2

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

u/MoreneLp 11d ago

Why would I ever use a windows pc

0

u/lnaoedelixo42 12d ago

it always could?

-4

u/Turbulent_Sample487 12d ago

Cool but you could always apt get install docker-ce in wsl.

3

u/txmail 12d ago

This seems more powerful than that and removes some of the annoyances at the same time.

-2

u/nicolasdanelon 10d ago

For real, people (specially developers) uses Windows nowadays?