美文网首页
windows11 home版 安装docker

windows11 home版 安装docker

作者: cc卡耐基 | 来源:发表于2023-12-11 17:51 被阅读0次
  • 第一步:
    检查BIOS是否开启VT。

  • 第二步:
    之后需要开启hyper-V,当然home版可能没有这个东西,需要手动安装,安装脚本如下

创建一个文件,文件名随意,我用的是install-hyper-v.cmd

pushd "%~dp0"
dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hyper-v.txt
for /f %%i in ('findstr /i . hyper-v.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"
del hyper-v.txt
Dism /online /enable-feature /featurename:Microsoft-Hyper-V-All /LimitAccess /ALL

保存后,右键使用管理员方式运行。执行完成后,有一个提示,输入Y,系统会自动重启。

  • 第三步:
    重启之后,进入cmd(也是以管理员方式运行窗口),执行如下命令
wsl --update
  • 第四步:
    启动docker desktop

相关文章

网友评论

      本文标题:windows11 home版 安装docker

      本文链接:https://www.haomeiwen.com/subject/foymgdtx.html