"WSL 2 will also support running Linux Docker containers natively, so that VMs are no longer required."
Great news!
"WSL 2 will also support running Linux Docker containers natively, so that VMs are no longer required."
Great news!
Unfortunately the link https://aka.ms/build2019kernelannounce doesn't seem to work for me.
The whole thing of WSL was it that contained no Linux kernel at all.
Today, Linux Docker containers on Windows rely on a VM running on Hyper-V.
Tomorrow (by which I mean "in the future," or "June 2019" or whatever the announcement says) Linux Docker containers on Windows will run natively, without the Linux VM crutch. I am assuming that it will use the emulated syscalls the same way that WSL runs today.
Adding the appropriate things to WSL to make Docker for Windows no longer require the Moby VM, or to support Linux Docker within the WSL environment without modification, is an approach that makes much more sense to me.
> WSL 2 uses the latest and greatest in virtualization technology to run its Linux kernel inside of a lightweight utility virtual machine (VM). However, WSL 2 will NOT be a traditional VM experience.
https://devblogs.microsoft.com/commandline/announcing-wsl-2/
They could either go the syscall emulation route (as in current WSL), or possibly the "thin hypervisor" route, the fact they're talking kernel versions makes me think that may be what they're planning...
(I work at Microsoft but have no inside knowledge on this; just speculating.)
Whilst it doesn't explicitly mention Virtual Machines or Hypervisors, I'd read this as making use of that kind of technology with some additional tech. for interop with Windows to the level of WSL currently.
EDIT: and here's the confirmation https://devblogs.microsoft.com/commandline/announcing-wsl-2/ it's a VM
I've been running WSL for over a year with Docker for Windows and while the experience feels native to WSL (WSL has no problem running the Docker CLI and connecting to Docker for Windows) it'll be a very nice perk to just apt install Docker in WSL and not deal with DfW.