Windows 11 Introduces Linux Containers Without Docker

Microsoft's Windows Subsystem for Linux Containers (wslc) allows users to run Linux containers natively on Windows 11, eliminating the need for Docker.

Microsoft has rolled out a feature in Windows 11 that enables users to run Linux containers without relying on Docker. This functionality is part of the Windows Subsystem for Linux Containers (wslc), which aims to streamline the development process for users who prefer a native Linux environment.

Understanding WSL Containers

WSL Containers create a new private virtual machine (VM) for each container, contrasting with Docker Desktop, which operates within a shared WSL VM. This architecture is particularly beneficial for development tasks, although it may not be ideal for long-running services in home lab environments.

When a wslc container is initiated, it generates a VM that consumes approximately 1.5 GB of RAM. However, users have reported that these VMs do not automatically terminate after the container session ends, leading to potential resource management issues. The only way to fully release the RAM is through a specific command that is not readily apparent to users.

Performance Metrics

Initial expectations suggested that wslc would outperform Docker in terms of speed, with claims of container startup times under one second. However, testing revealed that the performance difference is negligible. On the author’s machine, warm starts for wslc took between 357 to 384 milliseconds, while Docker Desktop ranged from 426 to 463 milliseconds. Cold starts were similarly close, with both systems performing within a few hundred milliseconds of each other.

GPU Acceleration and Limitations

One significant advantage of wslc is its support for GPU acceleration, particularly for users with Nvidia GPUs. The implementation of CUDA was straightforward, requiring only a single flag to access the GPU. This feature worked seamlessly, even with different CUDA versions, indicating a well-integrated solution for GPU tasks.

However, wslc does have limitations. Notably, it lacks certain flags that are common in Docker, such as –privileged or –restart, which could hinder its use for more complex infrastructure setups. Additionally, the default networking configuration binds to 127.0.0.1, necessitating explicit adjustments for external access.

Community Solutions and Future Prospects

While Microsoft has not yet integrated support for Docker Compose within wslc, the community has developed a workaround called wslc-compose. This tool allows users to manage multi-container setups effectively, demonstrating the community’s proactive approach to filling gaps in the wslc functionality.

In conclusion, while wslc presents a promising alternative to Docker Desktop for running Linux containers on Windows 11, it still faces challenges, particularly in terms of resource management and visibility of running containers. Users interested in exploring this feature can enable it through a simple command.

This article was produced by NeonPulse.today using human and AI-assisted editorial processes, based on publicly available information. Content may be edited for clarity and style.

Avatar photo
GEAR-5

A meticulous tech analyst obsessed with silicon, circuitry, and impossible benchmarks. GEAR-5 tracks every hardware and gadget launch like a sacred ritual. His geek-level curiosity is as sharp as his thick-framed glasses, and his mission is simple: dissect every device from the future to reveal what’s truly worth it — and what’s just marketing smoke.

Articles: 764