首先,需要打开“系统虚拟机平台”功能,在“控制面板\所有控制面板项\程序和功能”中选择“启用或者关闭Windows功能”,勾选对应选项即可: 也可以通过在管理员权限下的 cmd 或 PowerShell 中执行: dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart 下载wsl2 需要使用的 linux 内...
错误代码: Wsl/CallMsi/Install/ERROR_INSTALL_FAILURE 这时候,显然报错原因找到了,没有权限写入注册表,不得不吐槽一下微软,这个bug就是不更新。 二、解决办法 打开注册表编辑器,找到对应项计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\WSL,右键打开权限,上面选中 SYSTEM 用户(注意别选错!),给它...
进入Docker Desktop之后,点击右上方的设置按钮,勾选下图两个选项: (4) WSL2安装docker 参考:利用国内网络丝滑的安装 Docker - 善良超锅锅的文章 - 知乎 我的WSL2是Ubuntu22.04,WSL2的安装教程请参考立创泰山派tspi-Windows11安装与配置WSL2用于Linux开发 安装设置仓库必须的工具 sudo apt update && sudo apt in...
想换成WSL 2可以在设置里勾选 Use the WSL 2 based engine (这里有说明 WSL 2 比传统的 Hyper-V backend 性能更好) WSL 2 provides better performance than the legacy Hyper-V backend.Learn more. ✨参考及引用 Install Docker Desktop on Windows | Docker Documentation 安装WSL | Microsoft Docs WSL ...
在Windows 上使用 WSL2 安装 Docker 的详细步骤如下: 1. 启用 Windows 的 WSL2 功能 首先,需要确保 Windows 系统支持并启用了 WSL2 功能。 BIOS 开启虚拟化:确保 BIOS 中已开启虚拟化技术(如 Intel VT-x 或 AMD-V)。 查看先决条件:确保 Windows 版本为 10 2004(内部版本 19041)及以上或 Windows 11。 开...
使用Windows Terminal操作Ubuntu系统。选择Ubuntu发行版后,使用配置的用户名和密码登录。为避免使用sudo时频繁输入密码,可通过命令设置用户名免密码登录root用户。考虑到国内访问速度,更换源至阿里云以加速安装过程。安装Docker需注意,传统apt install docker-ce方法在WSL2中可能无法启动,推荐使用官方get-...
https://docs.docker.com/compose/install/linux/ Step 3: Ensure the Docker Service Runs in WSL 2 At the time of this post systemd isn’t started inside of WSL 2 by default. We won’t need it but if you decide to enable systemd with newer versions of WSL 2 then you can skip this ...
1.安装WSL2 0.按下Windows 徽标键 + X,选择管理员PowerShell 或 Windows 命令提示符; 1.在打开的窗口中输入: wsl --set-default-version 2 然后按下回车; 2.输入: wsl --install -d Ubuntu 然后按下回车。 你应该看到一个标题为Ubuntu的新窗口。
https://docs.microsoft.com/zh-cn/windows/wsl/install#update-to-wsl-2 必须运行 Windows 10 版本 2004 及更高版本(内部版本 19041 及更高版本)或 Windows 11。 WSL2(Windows Subsystem for Linux )是Windows 10上的一个工具,允许开发人员在Windows上直接运行Linux环境,使得在Windows系统上进行Linux的原生体验...
如果在安装 Docker Desktop 时遇到 "WSL 2 installation is incomplete" 的错误消息,这意味着 Windows Subsystem for Linux 2 (WSL 2) 安装不完整。 当您的WSL 2安装不完整时,可以采取一些步骤来排查和解决问题: 检查系统要求:确保您的系统符合运行WSL 2的要求。您需要使用Windows 10版本2004或更高版本,构建号为...