win11安装docker-desktop
1、安装wsl
- 以管理员身份打开 PowerShell(“开始”菜单 >“PowerShell” >单击右键 >“以管理员身份运行”),然后输入以下命令:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
- 启用虚拟机功能
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
- 下载 Linux 内核更新包
linux内核下载地址
- 运行第三步中下载的mis文件
- 查看版本
wsl --version
2、安装desktop
3、配置镜像加速以及OCI
"registry-mirrors": [
"https://8u5kx0c4.mirror.aliyuncs.com"
],
"exec-opts": [
"native.cgroupdriver=cgroupfs" // linux系统使用systemd
]