当前位置: 首页> 汽车> 车展 > (寄中寄) docker destop 的wsl问题——记一次在win10虚拟机的上的启动docker

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

时间:2025/7/8 23:27:39来源:https://blog.csdn.net/m0_63416413/article/details/140292562 浏览次数: 0次

🎪🎢🎡🎠🤡🦁

在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 5650f9bC:\Windows\system32>wsl --update
正在检查更新。
已安装最新版本的适用于 Linux 的 Windows 子系统。C:\Windows\system32>wsl --shutdownC:\Windows\system32>netsh winsock reset成功地重置 Winsock 目录。
你必须重新启动计算机才能完成重置。C:\Windows\system32>wsl --shutdownC:\Windows\system32>

然后,再打开docker desktop试试

以上步骤参考了–https://blog.csdn.net/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.csdn.net/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.csdn.net/weixin_44301630/article/details/122390018
用powershell 管理员

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

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

 wsl --set-default-version 2

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

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

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

责任编辑: