Get started with Linux containers in Docker on WSL2


When Microsoft launched its Windows Subsystem for Linux (WSL) back in 2018, it was very clear why: It wanted to provide tools for developers building modern cloud applications. Microsoft needed a way to offer container development, with an eye on Azure-hosted distributed applications running on its .

However, there were issues with the original WSL platform. It wasn’t easy to run Linux containers natively on Windows. Combined with ensuring WSL’s emulation layer could support Linux applications and services, it was clear that an emulation-based approach couldn’t meet the needs of most developers. That led to a redesign of the WSL platform and the resulting launch of WSL2 with a full Linux kernel earlier in 2019.

Microsoft’s are currently rolling out with Windows Insider 20H1 builds. As , much of how it works is based on a collaboration between Microsoft and Docker engineers: LCOW (), which was intended to simplify running Linux containers directly on Windows. By using a hypervisor to host the relevant elements of the Linux OS and Docker platform, Windows development tools have access to the contents of the hosted containers. That thin-hypervisor approach now hosts the entire WSL environment, allowing Linux applications and containers to run natively on Windows systems.

Alongside the launch of WSL2, Docker announced for Windows, with that would work with WSL2, supporting native Linux containers on Windows at long last.

That is now available as a beta from Docker, requiring a Docker account. I signed up shortly after the new release was announced and last week finally got access to the new build. I’ve now installed it on my Fast Ring test PC, ready to try it out alongside as part of putting together an end-to-end development toolchain for Linux container applications.