3 ms·
WSL2 is no longer using the NT kernel. It’s a full blown VM now that uses Plan 9 9p for file system interop. The new Docker for Windows uses an additional WSL2
by kuhsaft 3y ago
WSL2 is no longer using the NT kernel. It’s a full blown VM now that uses Plan 9 9p for file system interop.
The new Docker for Windows uses an additional WSL2 distro instance, so it’s not very different from Docker for Mac.
Windows Docker -> Mac Docker
WSL2/Hyper-V -> Hypervisor.framework/Virtualization.framework
9p -> gRPC-fuse/virtiofs
They’re the same setup really.
If you want something like WSL2, I would recommend Lima (https://github.com/lima-vm/lima https://github.com/lima-vm/lima).
Edit: Well, they’re not completely the same. WSL2 is using virtualization, but the WSL instances are actually using a shared kernel packaged with WSL (https://github.com/MicrosoftDocs/WSL/blob/mattw-wsl2-explainer/WSL/wsl2-architecture.md https://github.com/MicrosoftDocs/WSL/blob/mattw-wsl2-explain...). So it’s a bit more optimized than standard MacOS Virtualization due to some optimizations.