(寄中寄) docker destop 的wsl问题——记一次在win10虚拟机的上的启动docker

🎪🎢🎡🎠🤡🦁

在win10上可能可以用docker,不过在win10上用docker有点不可能

wsl在windows中可能需要安装,不过wsl在windows安装有点不可能

应该是不用安装吧

在这里插入图片描述在这里插入图片描述在这里插入图片描述

可能需要重启

然后

Microsoft Windows [版本 10.0.19045.4529]
(c) Microsoft Corporation。保留所有权利。

C:\Windows\system32>docker --version
Docker version 26.1.4, build 5650f9b

C:\Windows\system32>wsl --update
正在检查更新。
已安装最新版本的适用于 Linux 的 Windows 子系统。

C:\Windows\system32>wsl --shutdown

C:\Windows\system32>netsh winsock reset

成功地重置 Winsock 目录。
你必须重新启动计算机才能完成重置。


C:\Windows\system32>wsl --shutdown

C:\Windows\system32>

然后,再打开docker desktop试试

以上步骤参考了–https://blog.youkuaiyun.com/ruoxuer/article/details/134768614

然后捏,没能成,尝试装wls2
cmd以管理员运行

Microsoft Windows [版本 10.0.19045.4529]
(c) Microsoft Corporation。保留所有权利。

C:\Windows\system32>wsl.exe --install
正在安装: Ubuntu
[==                         4.0%                           ]

如上,等一会吧

又出错了

C:\Windows\system32>wsl.exe --install
Ubuntu 已安装。
正在启动 Ubuntu...
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80370102
Please enable the Virtual Machine Platform Windows feature and ensure virtualization is enabled in the BIOS.
For information please visit https://aka.ms/enablevirtualization
Press any key to continue...
操作成功完成。

https://blog.youkuaiyun.com/q20010619/article/details/120660346尝试解决一下喽

迷之命令

PS C:\Windows\system32> # 启用适用于 Linux 的 Windows 子系统
>> dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
>> # 启用虚拟机功能
>> dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
>> # 下载 Linux 内核更新包
>> https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi
>>

在这里插入图片描述
在这里插入图片描述
这个ubantu 还是报这个错,重启试试吧
在这里插入图片描述systeminfo查看hyper-v

https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi下一下更新

运行一下,来自https://blog.youkuaiyun.com/weixin_44301630/article/details/122390018
用powershell 管理员

dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

在这里插入图片描述
据说要重启

 wsl --set-default-version 2

在这里插入图片描述
没能成,不知道为啥

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值