简体   繁体   English

无法使用 windows 中的 Docker 启用 Hyper-V 服务 10

[英]Cannot enable Hyper-V service with Docker in windows 10

i have already enabled virtualization in my BIOS, and also enable it in Windows feature我已经在我的 BIOS 中启用了虚拟化,并且还在 Windows 功能中启用了它在此处输入图像描述

furthermore, the android emulator with android studio working well, but when i try to run Docker for windows, i encounter this problem?此外,android 仿真器与 android 工作室运行良好,但当我尝试为 Z0F4137ED1502B50452D 运行 Docker 时,遇到这个问题? 在此处输入图像描述

i don't know where the problem is?我不知道问题出在哪里?

You need to autostart the hypervisor at startup.您需要在启动时自动启动管理程序。

Open a Powershell as Admin.以管理员身份打开 Powershell。 Paste the line:粘贴以下行:

bcdedit /set hypervisorlaunchtype auto

Then the hypervisor will start at the next boot and it should work.然后管理程序将在下一次启动时启动,它应该可以工作。 For future information see: https://d3v.one/windows-10-changing-hyper-v-support-at-boot-time/有关未来信息,请参阅: https://d3v.one/windows-10-sharing-hyper-v-support-at-boot-time/

In my case this worked for me More concrete steps:就我而言,这对我有用更具体的步骤:

got to 'Apps and Features.进入“应用程序和功能”。 Select Programs and Features on the right under related settings. Select Programs and Features 在右侧相关设置下。 Select Turn Windows Features on or off. Select 打开或关闭 Windows 功能。 Unselect Hyper-V and click OK.取消选择 Hyper-V,然后单击确定。 (So I disable it) Restart computer (所以我禁用它)重新启动计算机

After restart I go to: 'Apps and Features.重启后我 go 到:'应用程序和功能。 Select Programs and Features on the right under related settings. Select Programs and Features 在右侧相关设置下。 Select Turn Windows Features on or off. Select 打开或关闭 Windows 功能。 select Hyper-V and click OK. select Hyper-V 并单击确定。 (So I enable it) Computer restart (所以我启用它)计算机重启

After restart, then docker worked correctly.重启后,docker 工作正常。

What worked for my team was to make sure Containers and Hyper-V was enabled, then making sure Docker Desktop was updated.对我的团队有用的是确保容器和 Hyper-V 已启用,然后确保 Docker 桌面已更新。

Here are the steps which I did and it works for me:这是我所做的步骤,它对我有用:

  1. Validate that Hyper-V is checked in Windows feature验证是否在Windows feature中检查了Hyper-V 在此处输入图像描述
  2. Ensure the hyper-v is enabled in your BIOS确保在您的 BIOS 中启用了hyper-v
  3. Run bcdedit /set hypervisorlaunchtype auto as Administrator in Powershell and reboot the PC在 Powershell 中以管理员身份运行bcdedit /set hypervisorlaunchtype auto并重新启动 PC

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法在Windows 10 Pro 64位上启用Hyper-V服务 - Cannot Enable Hyper-V Service On Windows 10 Pro 64 Bit 无法在 Windows 10 中启动 Docker - 抛出 Hyper-V 错误 - Unable to start Docker in Windows 10 - Hyper-V error is thrown Docker 镜像和容器位置与 Windows 10 使用 hyper-v - Docker images and containers location with Windows 10 using hyper-v Windows中的docker需要启用Hyper-V吗? - docker in windows need Hyper-V enabled? 在Windows 10(启用Hyper-V)和Linux OS上安装docker有什么区别? - What's the difference between installing docker on Windows 10(Hyper-V enabled) and Linux OS? 从 Windows 10 PgAdmin 连接安装在 Hyper-V Ubuntu 中的 docker 中的 PostgreSQL - Connecting PostgreSQL installed in docker inside Hyper-V Ubuntu from Windows 10 PgAdmin Windows 10 上 Docker-Desktop 的 Hyper-V 和数据执行的错误消息无法启动 - Error Message for Hyper-V and Data Execution for Docker-Desktop on Windows 10 Failing to Start 手动删除Hyper-V中的MobyLinuxVM后,Windows 10上的Docker无法启动 - Docker on windows 10 can't startup after deleting MobyLinuxVM in Hyper-V manually Windows 10上的Aldryn Cloud,使用hyper-v和docker 1.12 rc2 beta16 - Aldryn cloud on windows 10, using hyper-v, and docker 1.12 rc2 beta16 导出/保存? Linux 上的 Docker 容器到硬盘,以便在没有 Hyper-V 的情况下在 Windows 10 中导入/加载它? - Export/Save? Docker container on Linux to hard drive in order to Import/Load it in Windows 10 without Hyper-V?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM