Windows Subsystem for Linux
发布时间:2026-10-10 | 浏览:1
Building Windows for hybrid intelligence – Run agents locally or in the cloud, with enterprise-grade security and manageability.
直接在 Windows 上使用 Linux 发行版、工具和工作流,无需管理传统虚拟机或双引导设置。
What working with WSL looks like
Install WSL and a Linux distribution with one command. Create your Linux username and password on first launch, and add distributions later.
Use your development tools
Keep Visual Studio Code and Windows Terminal on Windows while your toolchain and debugger run in Linux. Use the same environment with Git and Docker Desktop.
Manage WSL for teams
配置资源、网络和防火墙设置,并应用组织策略以帮助团队维护一致的开发环境。
A container CLI in the box
Use wslc to run, build, debug, and test Linux containers. This release adds container restart, file copy in and out, system info, network attach and detach, healthchecks, a configurable stop timeout, a configurable storage path, and an event stream.
Call containers from Windows code
A NuGet package brings container support to C, C++, and C# applications, so a Windows app can run Linux code as part of its own logic. The API integrates with MSBuild and CMake, so container build and deploy steps become part of your normal build.
Managed and monitored
Microsoft Defender for Endpoint 插件会报告容器活动以及现有 Windows 信号。管理员可以允许或阻止容器访问,并设置注册表允许列表,以便只能拉取批准的映像。
Faster files and better networking
WSL containers use the virtiofs file system, which Microsoft measures as twice as fast for Windows file access, and a networking mode called consomme that relays Linux traffic through Windows so containers inherit your existing network and security configuration. Memory is also returned to Windows more steadily when a container is idle.
Multi-container workflows are next
Support for running your existing compose files is the most requested feature and the current focus of the team. Work also continues on the WSL fundamentals underneath, which benefits WSL distributions and other container tools built on WSL.
Documentation, tooling, and releases
Learn and set up
WSL documentation
Set up a WSL development environment
Basic WSL commands
Tools and advanced workflows
Develop in WSL with VS Code
Run Linux containers with WSL
Run Docker containers on WSL
GPU-accelerated workloads
Advanced settings configuration
Enterprise, open source, and releases
WSL for your enterprise
WSL Container Desktop (community)
Follow Windows Developer