Microsoft Brings Linux Containers Directly To WSL With New Developer Tools

Share

- Advertisement -
  • Microsoft has made WSL Containers generally available for running Linux containers directly on Windows.
  • The new wslc.exe tool can build, run and manage containers, with container.exe available as an alias.
  • Businesses get security and management features through Defender for Endpoint and Intune.
  • Microsoft is working on Compose support so existing compose.yaml files can work with WSL Containers.

Microsoft is expanding the capabilities of Windows Subsystem for Linux with the general availability of WSL Containers, giving developers a new way to build and run Linux containers directly on Windows without relying on a separate container runtime.

The feature is now available through a WSL update. Users can install the latest version by running wsl –update. Once the update is installed, developers gain access to a new command line utility called wslc.exe, which is designed to handle common container tasks from Windows.

Microsoft has also included container.exe as an alias for the same tool. That means developers who are already familiar with common container commands can use a more recognizable command structure while working with Linux containers through WSL.

The move represents another step in Microsoft’s effort to make WSL useful for more than simply running Linux distributions alongside Windows applications.

WSL gets a dedicated container workflow

WSL Containers is designed to let developers build, run and deploy Linux containers directly from Windows. Instead of treating containers as a separate environment, Microsoft is bringing container functionality closer to the existing WSL experience.

The general availability release also includes several features that were not available, or were limited, during the earlier preview phase.

- Advertisement -

Developers can now restart containers, copy files between the host and containers, configure health checks and connect or disconnect containers from networks. The platform also provides real time container events, mount support and options for configuring where container data is stored.

These additions make WSL Containers more practical for development workflows where containers need to behave like a regular part of the local environment.

Microsoft is also providing a WSL Containers API. This is aimed at developers building Windows applications that need to launch or communicate with Linux containers programmatically.

The API could be particularly useful for applications that need to run local AI workloads or use containerized cloud applications directly on a Windows machine.

Microsoft is targeting enterprise developers too

The new container capabilities are not limited to individual developers. Microsoft is also adding controls aimed at organizations that need greater visibility and management over development environments.

WSL Containers now works with Microsoft Defender for Endpoint. This allows security teams to monitor activity inside Linux containers and connect process, file and network activity with the corresponding Windows host activity.

- Advertisement -

For companies managing large developer environments, that visibility could make it easier to investigate suspicious activity or understand how container workloads interact with Windows systems.

Microsoft Intune can also be used to disable WSL Containers or place restrictions on the container images developers are allowed to use.

One of the more notable enterprise features is registry allowlisting. Administrators can specify which container registries developers can access, helping organizations limit image downloads to approved sources.

This gives IT and security teams another way to apply internal security and compliance policies without completely blocking developers from using containers.

More developer tools are gaining support

Microsoft is also working with popular development tools to make WSL Containers easier to adopt.

Visual Studio Code Dev Containers can use wslc as their default driver, while Microsoft’s broader container tooling and other developer platforms are also gaining support.

- Advertisement -

Aspire and the VS Code Containers extension are among the tools that can now work with WSL Containers.

For developers who already use WSL as their primary Linux development environment, this integration could reduce the need to switch between different container tools during everyday development.

It also gives Microsoft a stronger position in the growing developer tooling space, where containers have become a standard part of application development and testing.

Docker Compose support is on the way

There is still one major feature missing from the current release.

Microsoft says it is working on Compose support, with the goal of allowing developers to use existing compose.yaml files with WSL Containers without making changes to those files.

The proposed workflow would use a command such as wsl compose up, allowing multi container applications to be started using a familiar Compose based process.

Microsoft says development work on this feature has already started, although it has not provided a firm release date.

The company is also continuing to improve networking and cross operating system file performance in WSL.

These areas are important because developers frequently move files and services between Windows and Linux environments. Faster file operations and better networking could make container based development feel more seamless, particularly for larger projects.

WSL Containers therefore looks less like an isolated new feature and more like an extension of Microsoft’s broader strategy for turning WSL into a complete development environment.

For developers, the biggest change is straightforward. Linux containers can now be managed directly through WSL using Microsoft’s own command line tooling, while Windows applications can interact with those containers through an API.

The addition of enterprise management, security controls and support from popular development tools also shows that Microsoft is aiming beyond individual hobby projects.

The next major milestone will be Compose support. If Microsoft delivers its planned compatibility with existing compose.yaml files, WSL Containers could become considerably more useful for developers who work with multi container applications on Windows.

Follow TechBSB For More Updates

- Advertisement -
Emily Parker
Emily Parker
Emily Parker is a seasoned tech consultant with a proven track record of delivering innovative solutions to clients across various industries. With a deep understanding of emerging technologies and their practical applications, Emily excels in guiding businesses through digital transformation initiatives. Her expertise lies in leveraging data analytics, cloud computing, and cybersecurity to optimize processes, drive efficiency, and enhance overall business performance. Known for her strategic vision and collaborative approach, Emily works closely with stakeholders to identify opportunities and implement tailored solutions that meet the unique needs of each organization. As a trusted advisor, she is committed to staying ahead of industry trends and empowering clients to embrace technological advancements for sustainable growth.

Read More

Trending Now