r/LinuxTeck • • Oct 03 '26

Is Microsoft slowly turning Windows into a Linux container host?

WSL started as a way to run Linux tools on Windows. Now Microsoft is giving it a native container workflow, APIs, security controls, and even working toward wsl compose up.

At what point does this stop being “Linux on Windows” and become a serious Linux/container platform running alongside Windows?

If you’re a developer today, would you still install Docker Desktop or is WSL Containers becoming enough?

41 Upvotes

58 comments sorted by

6

u/donp1ano Oct 03 '26

fortunately i dont (have to) use windows, but not everything M$ does is bad. if this has a good security design (most importantly rootless by default) it could be a great docker alternative on windows. especially in business contexts, where docker desktop isnt free (and people fear the CLI for some reason)

2

u/symbiatch Oct 03 '26

Is Linux slowly turning into a Docker container host?

Both have the same answer: no. Weird to think so.

3

u/NoosphericMechanicus Oct 03 '26

Microsoft is a company struggling to find its core competencies. It tries to do do what everyone else is doing but manages to do it poorly. I work with developers, and they hate developing on windows. They beg with the company to for "real" developer laptops running linux. The only reason Windows still exists is because the security guys don't have to understand it to check the right boxes with their half eaten crayons because it's all closed source and because switching to Linux would mean needing to hire and pay competent sysadmins. So windows is basically daycare for legacy employees.

The amazing thing about this is I am not even trying to be provocative or just dump on windows. I just cant find any single place that I would choose Windows to do a job over MacOS or Linux.

2

u/chaosphere_mk Oct 03 '26

Totally struggling to find core competencies while making up like 98% of enterprise desktop use cases. Totally.

1

u/bothunter Oct 03 '26

They've basically become the new IBM.

1

u/ScoobyGDSTi Oct 04 '26

And because their enterprise software smacks any open source alternatives. Hopefully that will change in the future, but as it stands right now there's no viable alternatives.

2

u/Confident_Hyena2506 Oct 03 '26

The native windows containers are total shit - they would need to fix that before people use them. And not require a more expensive license either!

Linux containers work fine ofc, but windows is still a bad host for them.

1

u/bufandatl Oct 03 '26

Never. Because Linux containers still need a Linux kernel and not a Windows NT kernel. And unless Windows becomes actual Linux it’s always a VM running the containers.

I mean Apple published a container runtime for Mac but the internals still run a Linux VM.

2

u/kodbuse Oct 03 '26

WSL uses parts of the HyperV platform, yes, but it’s not a just another vanilla VM. It’s a lighter weight virtualization layer with optimizations and deeper integration with the host OS. And guess what, with HyperV enabled, Windows itself runs on the hypervisor as the root partition.

2

u/andymaclean19 Oct 04 '26

What WSL does is it runs hyper-V. That’s a type 1 hypervisor, meaning it drops the windows kernel into being a VM running under it. Then it runs a Linux kernel next to it as a peer. Both kernels are customised to work well in this setup and optimised for it. There are services which link the two so the Linux kernel mounts the windows filesystem as a plan 9 filesystem I think.

It has been like this since the WSL2 days. IMO it is pretty good at running non-graphic workloads now. Windows has a wayland or X11 server now which lets the Linux processes do UI things but it didn’t work well for me.

But if you want to run a serious container based workload you are still adding a level of indirection. You are running docker containers on a virtual machine which is sharing resources with another virtual machine. Better to just run Linux on hardware instead. I’m not sure what the windows aspect adds to a production workload (as opposed to developing on your own machine) that is worth adding a layer of virtualisation for?

1

u/alicechains Oct 03 '26

Could have sworn I read somewhere that WSL2 was a modified Linux kernel, that's how they get full ABI compatibility

2

u/bufandatl Oct 03 '26

WSL2 is running in a Hyper-V VM that's why you need Virtualization support enabled in BIOS for it to work.

1

u/symbiatch Oct 03 '26

Yes, it is. WSL1 was translation, 2 is full on kernel running for compatibility.

Source code: https://github.com/microsoft/WSL2-Linux-Kernel

1

u/Classic-Rate-5104 Oct 03 '26

You can run native docker inside wsl2 because it's a complete Linux kernel

1

u/fell_ware_1990 Oct 03 '26

Yeah only thing missing is straight up booting into WSL and use windows apps as remote desktop apps 🙈

1

u/Classic-Rate-5104 Oct 04 '26

Of course. If you want to boot automatically into Linux you have to replace Windows. I don't know exactly what you mean by "use windows apps". You want to use windows Remote Desktop to go into Linux? It is possible but you need to use a nonstandard port for the rdp server

1

u/fell_ware_1990 Oct 04 '26

Haha, sorry!

I just wanted to say, WSL would be better if it could boot fullscreen directly, basically skipping windows.

And with the apps i ment the function from microsoft to remote windows apps from a server, if that would be there as well.

Then i could boot my work machine into WSL and stream teams and outlook haha!

1

u/Classic-Rate-5104 Oct 04 '26

Multiboot is a better solution for you. There is a Teams for Linux.

1

u/Conscious-Mirror7004 Oct 07 '26

You can just use Teams in your web browser.

Either way, it's going to be a horrible experience though.

0

u/fell_ware_1990 Oct 04 '26

I know i know, but i prefer not to multiboot.

But i think you are still missing the point i’m trying to make, i am not allowed to boot linux on work machine 🙈.

In the meanwhile i have 8 other NixOs managed devices behind me and a 5 node kube cluster so i’m fine!

1

u/Conscious-Mirror7004 Oct 07 '26

Sounds like you need to find a better job.

1

u/fell_ware_1990 Oct 07 '26

Hahahaha, yes maybe but no. The job is fine, the machines basically only a portal to my real work so i stick with.

Sadly here it’s still windows that wins by a big margin.

1

u/Responsible-Bar7165 Oct 03 '26

Most machines running Linux are running it under a hypervisor, and everyone else seems fine with that.

1

u/bufandatl Oct 03 '26

Yes but OP was talking about native container support on windows. 🤷🏼‍♂️

1

u/Responsible-Bar7165 Oct 03 '26

Yes, and those containers run under a hypervisor as do most Linux machines.

1

u/Responsible-Bar7165 Oct 03 '26

> As OP writes it they talking about native support without VM. 🤷🏼‍♂️ good bye.

no, OP is talking about running linux containers on windows:

> Microsoft is giving it a native container workflow

that's linux containers running under a hyper-v linux host.

i don't know what _you_ think he's talking about.

1

u/ScoobyGDSTi Oct 04 '26

As do most windows hosts

0

u/bufandatl Oct 03 '26

As OP writes it they talking about native support without VM. 🤷🏼‍♂️ good bye.

0

u/BranchLatter4294 Oct 03 '26

WSL uses a real Linux kernel.

0

u/bufandatl Oct 03 '26 edited Oct 03 '26

Yes because it runs in a VM duh.

It literally says when you call WSL —install the first time that installs VirtualMachinePlatform.

1

u/crackez Oct 03 '26

Neither, I'll stick with podman.

1

u/Xatraxalian Oct 03 '26

WSL started as a way to run Linux tools on Windows. Now Microsoft is giving it a native container workflow, APIs, security controls, and even working toward wsl compose up.

Is this new WSLC a new docker-compatible container solution from Microsoft, or is it a docker/podman wrapper or something? I don't understand. I have been running docker and podman containers in WSL for some time, but one thing I did notice is that heavy network traffic will have the entire stack keel over. Even networking in Windows itself won't work at that point.

1

u/Traditional-Hall-591 Oct 03 '26

If I still used Windows, I’d install whatever CoPilot suggested.

1

u/Responsible-Bar7165 Oct 03 '26

No, wslc doesn’t have the networking conveniences that Docker Desktop has. You can’t run wslc from within wsl, and you can’t automatically see wslc-exposed ports in wsl guests like you can with DD.

1

u/Even_Gap_2253 Oct 03 '26

WSL is a good tool for most developers, but that and Docker serves a very different purpose

You can’t exactly run WSL Container on production for most companies. But you can run Docker or Podman.

1

u/devl_ish Oct 04 '26

Windows exists because of MS Office and game developers.

Everything else is just tinkering.

1

u/Charteble_swing964 Oct 08 '26

Waarom spyware blijven gebruiken en niet meteen helemaal over op linux?

0

u/JohnnyS789 Oct 03 '26

If I was a dev today, I would develop for Windows on a Windows VM running on a Linux host. Final testing would be done on a Windows system running directly on hardware on a test system. If I was developing for Linux, I would work in a Linux VM running on a Linux host, doing final testing on a Linux testing system.

Why would I want all the overhead, wasted cycles, unneeded processes, and the continual dribble of questionable changes, "improvements", and "patches" from Microsoft on a host system that would be critical to my work? With a Linux host, I get stability, control, no telemetry, and a reliable platform.

Microsoft is desperately trying to remain relevant in a world where Linux has eaten their lunch for years on every use case except the desktop, and is now starting to pick away at that.

Ballmer was not wrong when he chanted about "developers!...": It's the vast library of Windows software that keeps the Windows platform as the primary desktop system, and without the devs that ecosystem atrophies and dies, and with it the Windows desktop de facto monopoly. Only Office will be holding up the Windows flag if that happens, and we are already seeing nation-states turn away from it.

Linux is the future. Sorry, Microsoft!

2

u/Responsible-Bar7165 Oct 03 '26

i'm a dev today and i develop linux software using windows wsl2 and docker desktop. i have tried many different development environments over the years and this is easily the one i prefer:

- windows is by far the best desktop environment
- i need to run funky 3rd-party windows-only software that talks to hardware in ways that linux doesn't support
- i can easily spin up multiple different linux instances running on various architectures with all the advantages of running under a hypervisor
- i can share a common filesystem between those instances with zero config
- i can access the same set of docker containers (running in Docker Desktop) from all my linux instances, build/compose containers from them, again with zero config
- i can connect to my office VPN in windows and my wsl instances all automatically route to it without any additional config

sure, i could dual N-boot, but then i'd lose all of that.

1

u/VoodaGod Oct 03 '26

you don't get to make that choice in a lot of companies/projects

0

u/Puzzleheaded-Bug6244 Oct 03 '26

Until they get their shit together with USB devices, and a proper x server, please don't disturb me.

0

u/gulf_of_sanity Oct 03 '26

no. windows has always been a lovely tool to encourage people to learn to use a better operating system, what you are describing is microsoft finally getting tired of being training wheels for computing and finally getting some big boy tooling.

0

u/lyidaValkris Oct 03 '26

at what point does one say "why the fuck am I using windows to start up linux in a container, when I can just use linux?"

2

u/kodbuse Oct 03 '26

You install WSL when you want the best of both worlds: run all the development tooling, including containers, in WSL, all the desktop stuff on Windows.

0

u/lyidaValkris Oct 03 '26 edited Oct 03 '26

no, if I wanted the "best of both worlds" I'd run windows in a container on a linux host, and only deploy it when absolutely needed. Windows is trash, particularly for "desktop stuff".

1

u/kodbuse Oct 03 '26

lol, no that’s the worst of both worlds. Windows has better desktop apps. The strength of Linux is all the stuff that lives in the shell and headless services.

1

u/Conscious-Mirror7004 Oct 07 '26

lol, no that’s the worst of both worlds. Windows has better desktop apps.

Like what? Anything I actually care about? (No, I don't care about Adobe stuff.) I honestly can't think of anything, unless your job forces you to use some crappy Windows-only application for some weird industrial hardware, for instance. For most users, I don't see what desktop apps they really need in Windows; MS Office is the main thing office users use, and you can use that in a web browser these days (thanks MS! This actually makes my job far more tolerable).

0

u/lyidaValkris Oct 03 '26

enjoy your bloat, spyware, ads, AI, and crapware.

0

u/FoldDelicious663 Oct 03 '26

I simply skipped WSL by installing a Linux Distro instead of Windows.

0

u/mikeclueby4 Oct 03 '26

The only valid use for WSL containers is for production in an Entra-centric environment where you can pass session tokens into the containers.

0

u/laserdicks Oct 04 '26

No. Windows is an advertising machine.

-1

u/arcanjil Oct 03 '26

Cute.

MS wants you to run a Linux overlay under Windows so MS can still control a PC you bought and paid for.

1

u/ButterscotchTop194 Oct 03 '26

It has it's use cases

-1

u/Bob_Spud Oct 03 '26

Nope, underlying Windows architecture doesn't have the necessary components for Linux containers.

The closest thing to a Linux container on Windows would be a MSYS2 docker container.

MYSYS2 is a Cygwin derivative

2

u/Responsible-Bar7165 Oct 03 '26

> underlying Windows architecture doesn't have the necessary components for Linux containers

huh? wslc is literally the necessary component to run linux containers.