微软确认 Win10 支持 WSL Containers,需 Build 19041 及更高版本
IT之家 7 月 10 日消息,微软 WSL 产品负责人克雷格 · 洛温(Craig Loewen)确认,Windows 10 平台也支持运行 WSL Containers 功能。
[WSL Containers 是微软基于 WSL 提供的原生 Linux 容器能力](https://www.ithome.com/0/970/282.htm),用户无需安装 Docker Desktop 或 Podman Desktop,可通过 `wslc.exe` 在 Windows 中创建、运行和管理容器。适用场景包括本地容器化开发、单服务测试、镜像构建与命令行运维。

关于 WSL Containers 更多的体验细节,可以参考IT之家此前发布文章《[外媒初探微软 Win11 WSL 容器:无需 Docker,原生构建、运行和管理 Linux 容器](https://www.ithome.com/0/971/415.htm)》。
微软已经于 2025 年 10 月 14 日结束支持 Windows 10 系统,消费级扩展支持 ESU 计划已延长 1 年至 2027 年 10 月 12 日。
根据洛温公布的系统要求,Windows 10 用户如果希望运行 WSL Containers,系统版本达到 2004 或 Build 19041 及以上。
科技媒体 Windows Latest 实测,附上 Windows 10 运行步骤如下:
1. **检查您的系统版本。** 用户按 Win + R,输入 winver ,再按下回车键,需要 Version 2004 以及 Build 19041 及更高版本。

2. 安装 WSL,以管理员身份打开 Windows 终端,运行 `wsl --install` 命令。这将启用所需的 Windows 功能并将 Ubuntu 安装为默认发行版。然后重启电脑。

3. 更新容器版本。运行 `wsl --update --pre-release` ,然后运行 `wsl --shutdown`,关闭终端。

4. **确认版本。** 重启后,运行 `wslc --version` 命令。用户应该看到 `wslc 2.9.3.0`。

5. 运行测试,运行 `wslc --help` 查看完整的命令参考并确认安装文件是否正常工作。

该媒体在 Windows 10 上,借助 WSL Containers 构建 Flask 面板,镜像通过 `wslc build -t wsl-dashboard .` 构建,服务通过浏览器访问 127.0.0.1:5000。




在 GPU 透传方面,WSL Containers 支持通过 `--gpus all` 参数调用 CUDA 容器,示例镜像为 `pytorch / pytorch:2.5.1-cuda12.4-cudnn9-runtime`。
<iframe class="ithome_video bilibili" src="https://player.bilibili.com/player.html?bvid=bv1j3N764EMu&autoplay=0&page=1" frameborder="no" width="100%" allowfullscreen="true"> </iframe>
---
原文链接:[点击查看](https://www.ithome.com/0/974/819.htm)
[WSL Containers 是微软基于 WSL 提供的原生 Linux 容器能力](https://www.ithome.com/0/970/282.htm),用户无需安装 Docker Desktop 或 Podman Desktop,可通过 `wslc.exe` 在 Windows 中创建、运行和管理容器。适用场景包括本地容器化开发、单服务测试、镜像构建与命令行运维。

关于 WSL Containers 更多的体验细节,可以参考IT之家此前发布文章《[外媒初探微软 Win11 WSL 容器:无需 Docker,原生构建、运行和管理 Linux 容器](https://www.ithome.com/0/971/415.htm)》。
微软已经于 2025 年 10 月 14 日结束支持 Windows 10 系统,消费级扩展支持 ESU 计划已延长 1 年至 2027 年 10 月 12 日。
根据洛温公布的系统要求,Windows 10 用户如果希望运行 WSL Containers,系统版本达到 2004 或 Build 19041 及以上。
科技媒体 Windows Latest 实测,附上 Windows 10 运行步骤如下:
1. **检查您的系统版本。** 用户按 Win + R,输入 winver ,再按下回车键,需要 Version 2004 以及 Build 19041 及更高版本。

2. 安装 WSL,以管理员身份打开 Windows 终端,运行 `wsl --install` 命令。这将启用所需的 Windows 功能并将 Ubuntu 安装为默认发行版。然后重启电脑。

3. 更新容器版本。运行 `wsl --update --pre-release` ,然后运行 `wsl --shutdown`,关闭终端。

4. **确认版本。** 重启后,运行 `wslc --version` 命令。用户应该看到 `wslc 2.9.3.0`。

5. 运行测试,运行 `wslc --help` 查看完整的命令参考并确认安装文件是否正常工作。

该媒体在 Windows 10 上,借助 WSL Containers 构建 Flask 面板,镜像通过 `wslc build -t wsl-dashboard .` 构建,服务通过浏览器访问 127.0.0.1:5000。




在 GPU 透传方面,WSL Containers 支持通过 `--gpus all` 参数调用 CUDA 容器,示例镜像为 `pytorch / pytorch:2.5.1-cuda12.4-cudnn9-runtime`。
<iframe class="ithome_video bilibili" src="https://player.bilibili.com/player.html?bvid=bv1j3N764EMu&autoplay=0&page=1" frameborder="no" width="100%" allowfullscreen="true"> </iframe>
---
原文链接:[点击查看](https://www.ithome.com/0/974/819.htm)
评论
暂无评论。