win11 更新后导致 docker 启动报虚拟机错误解决办法

devtools/2024/10/22 14:30:49/

1. 确保勾选了 hyper-v 和 适用于 Linux 的 windows 子系统

在这里插入图片描述

2. 管理员运行 powershell, 挨个执行以下4个命令后,重启电脑

# 重新启用 WSL 和 VirtualMachine 功能:DISM /online /enable-feature /featurename:VirtualMachinePlatform /norestartDISM /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /norestart#重新启用 Hyper-V 功能:dism.exe /Online /Enable-Feature:Microsoft-Hyper-V /Allbcdedit /set hypervisorlaunchtype auto

docker__17">3. 重启后,顺利打开 docker

注:原报错如下:

Previously there was no errors; Now - error dialog is shown when starting the Docker Desktop:provisioning docker WSL distros: ensuring main distro is deployed: checking if main distro is up to date: checking main distro bootstrap version: getting main distro bootstrap version: exit code: 4294967295: running WSL command wsl.exe C:\WINDOWS\System32\wsl.exe -d docker-desktop -u root -e wsl-bootstrap version: WSL2 is not supported with your current machine configuration.
Please enable the "Virtual Machine Platform" optional component and ensure virtualization is enabled in the BIOS.
Enable "Virtual Machine Platform" by running: wsl.exe --install --no-distribution
For information please visit https://aka.ms/enablevirtualization
Error code: Wsl/Service/CreateInstance/CreateVm/HCS/HCS_E_HYPERV_NOT_INSTALLED
: exit status 0xffffffff
checking if isocache exists: CreateFile \wsl$\docker-desktop-data\isocache: The network name cannot be found.

http://www.ppmy.cn/devtools/104139.html

相关文章

【MySQL】插入优化篇——(少量插入数据优化&批量插入数据load指令)

前言 大家好吖,欢迎来到 YY 滴MySQL系列 ,热烈欢迎! 本章主要内容面向接触过C Linux的老铁 主要内容含: 欢迎订阅 YY滴C专栏!更多干货持续更新!以下是传送门! YY的《C》专栏YY的《C11》专栏YY的…

【Python系列】SQLAlchemy 基本介绍

💝💝💝欢迎来到我的博客,很高兴能够在这里和您见面!希望您在这里可以感受到一份轻松愉快的氛围,不仅可以获得有趣的内容和知识,也可以畅所欲言、分享您的想法和见解。 推荐:kwan 的首页,持续学…

Hive SQL 练习

1、统计每天首次登录的人数 -- 统计每天首次登录的人数 -- 步骤:先找出第一次登录的时间,再按首次登录时间分组求人数-- 方法1: select first_login_time, count(user_id) as cnt from (select user_id, date_formate(min(login_ts), yyyy-…

自己开发完整项目一、登录注册功能-01

一、创建spingboot项目框架 1.首先创建一个空的项目作为父项目,之后的所有都在此基础上创建模块进行开发。 2.创建负责登录注册功能模块 二、启动项目 1.出现如下错误,代表着端口号被占用,这个时候,我们可以进行端口号的修改。 …

【网络安全】XML-RPC漏洞之盲SSRF

未经许可,不得转载。 文章目录 正文漏洞原理参考:【网络安全】XML-RPC PHP WordPress漏洞 正文 探索目标时,访问该链接:https://www.target.com/about-us/xmlrpc.php,页面如下: 修改GET为POST,并构造payload,以检查 XML RPC 服务器上启用了哪些方法: <methodCal…

【3.9】贪心算法-解最低加油次数

一、题目 汽车从起点出发驶向目的地&#xff0c;该目的地位于出发位置东面 target 英里处。 沿途有加油站&#xff0c;用数组 stations 表示。其中 stations[i] [positioni, fueli] 表示第 i 个加油站位于出发位置东面 positioni 英里处&#xff0c;并且有 fueli 升汽油。 假设…

Spring Cloud Consul 与 Eureka 对比:如何选择最佳服务发现工具

Spring Cloud Consul 与 Eureka 对比&#xff1a;如何选择最佳服务发现工具 服务发现是微服务架构中的核心组件之一&#xff0c;它允许服务之间在动态环境中彼此发现和通信。Spring Cloud 提供了多个服务发现工具&#xff0c;其中 Consul 和 Eureka 是最常用的两个。本文将深入…

Linux单用户模式和救援模式

Linux单用户模式和救援模式 init守护进程Linux系统启动级别init查看Linux启动级别init修改启动级别&#xff1a; systemd守护进程Linux系统启动级别systemd查看启动级别systemd修改启动级别 rescue单用户模式Initramfs模式进入Initramfs救援模式 修改被救援Linux的配置挂载boot…