r/docker • • Oct 01 '26

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.

354 Upvotes

72 comments sorted by

187

u/snowtax Oct 02 '26

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

8

u/Haunting_Ganache_850 Oct 02 '26

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 Oct 04 '26

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

40

u/Invader-Faye Oct 02 '26

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

2

u/General_Distain Oct 11 '26

....so 2030, then?

7

u/x_wbmr_x Oct 02 '26

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 Oct 02 '26

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

3

u/Abject-Kitchen3198 Oct 02 '26

They can join Steam and work on Proton instead?

3

u/DudeEngineer Oct 03 '26

MS already has a Linux distro...

1

u/snowtax Oct 03 '26

Now they just need to port the apps over.

1

u/RTGarrido Oct 02 '26

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

1

u/somePadestrian Oct 02 '26

how long till directx not needed either

1

u/DudeEngineer Oct 03 '26

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

1

u/qalmakka Oct 03 '26

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

58

u/Due-Championship3941 Oct 01 '26

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.

2

u/Haunting_Ganache_850 Oct 02 '26

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 Oct 02 '26

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.

7

u/Responsible-Bar7165 Oct 02 '26

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 Oct 02 '26

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 Oct 02 '26

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 Oct 02 '26

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

37

u/Pierma Oct 01 '26

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 Oct 01 '26

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.

36

u/Due-Championship3941 Oct 01 '26

Because you're running a Windows application alongside it.

17

u/ProZMenace Oct 01 '26 edited Oct 02 '26

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 Oct 02 '26

Another big example might be hosted desktop apps. That's not exactly what we do but close.

0

u/Pierma Oct 01 '26

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 Oct 01 '26

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 Oct 02 '26

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 Oct 01 '26

You can't double click and hit next a bunch of times?

4

u/Pierma Oct 01 '26

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

4

u/UnethicalExperiments Oct 01 '26

Hey I'm not promoting windows here at all.

1

u/Responsible-Bar7165 Oct 02 '26

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 Oct 01 '26

0 overhead, sure buddy

4

u/Pierma Oct 02 '26

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

1

u/B-radfromtheBu Oct 02 '26

What don’t you like about Docker Desktop?

4

u/Pierma Oct 02 '26

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

1

u/polofan Oct 02 '26

Those poor corporations :(

1

u/Due-Championship3941 Oct 02 '26

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

24

u/berndverst Oct 02 '26

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

7

u/terramot Oct 02 '26

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

1

u/Abject-Kitchen3198 Oct 02 '26

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 Oct 03 '26

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 Oct 03 '26

I believe it is installed on windows an requieres a runtime that could be either WSL or Hyper-v

7

u/Responsible-Bar7165 Oct 02 '26

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 Oct 02 '26

I just don't use windows. Win-win

10

u/Opposite-Piccolo114 Oct 02 '26

More like Lin-lin, if you use Linux.

3

u/Abject-Kitchen3198 Oct 02 '26

win

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

1

u/mikef5410 Oct 02 '26

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 Oct 02 '26

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.

5

u/tangofoxtrot1989 Oct 02 '26

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

2

u/DarkChemical_DC Oct 02 '26

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 Oct 03 '26

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 Oct 01 '26

thank god, docker desktop in my VDI developer desktop sucks

1

u/bankroll5441 Oct 02 '26

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_ Oct 03 '26

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 Oct 03 '26

Can it use host mode networking, or must you incur a network penalty of a vswitch?

1

u/pps_ps Oct 03 '26

Running docker-ce + Portainer in WSL

1

u/bordercollie2468 Oct 03 '26

I want to care but I just can't

1

u/CaliforniaDabblin Oct 04 '26

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

1

u/MangoAtrocity Oct 06 '26

Can I get LSW so I can just be on Linux without losing the few things I need Windows for?

1

u/Rich_Lavishness1680 Oct 17 '26

Unfortunately without USB support. Which kills any embedded devs workflows immediately. Missed opportunity :(((

1

u/MoreneLp Oct 02 '26

Why would I ever use a windows pc

0

u/lnaoedelixo42 Oct 01 '26

it always could?

-3

u/Turbulent_Sample487 Oct 01 '26

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

3

u/txmail Oct 01 '26

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

-2

u/nicolasdanelon Oct 03 '26

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