Docker-Desktop on Windows 的 Hyper-V 和数据执行错误消息 10 无法启动
Error Message for Hyper-V and Data Execution for Docker-Desktop on Windows 10 Failing to Start
因此,当我在 Windows 1909 上安装 Docker Desktop 和 Insiders 版本时,我遇到了这个问题。此外,我启用了 Hyper-V 和数据执行保护。我还检查了程序和功能中的 Windows 设置。我也提出了 GitHub 问题。
----------------------------------------
System.Runtime.InteropServices.WindowsRuntime
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.InteropServices.WindowsRuntime/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Runtime.InteropServices.WindowsRuntime.dll
----------------------------------------
Windows.Data
Assembly Version: 255.255.255.255
Win32 Version: 10.0.10011.16384
CodeBase: file:///C:/WINDOWS/system32/WinMetadata/Windows.Data.winmd
----------------------------------------
System.ValueTuple
Assembly Version: 4.0.3.0
Win32 Version: 4.6.26515.06
CodeBase: file:///C:/Program%20Files/Docker/Docker/System.ValueTuple.DLL
----------------------------------------
System.Collections
Assembly Version: 4.0.11.0
Win32 Version: 4.6.25714.01
CodeBase: file:///C:/Program%20Files/Docker/Docker/System.Collections.DLL
----------------------------------------
Docker.Win32Helpers
Assembly Version: 1.0.7257.10303
Win32 Version:
CodeBase: file:///C:/Program%20Files/Docker/Docker/Docker.Win32Helpers.DLL
----------------------------------------
System.Net.Http
Assembly Version: 4.2.0.0
Win32 Version: 4.6.26011.01
CodeBase: file:///C:/Program%20Files/Docker/Docker/System.Net.Http.DLL
----------------------------------------
System.Management.Automation
Assembly Version: 3.0.0.0
Win32 Version: 10.0.19041.1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Management.Automation/v4.0_3.0.0.0__31bf3856ad364e35/System.Management.Automation.dll
----------------------------------------
PresentationFramework.Aero2
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework.Aero2/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.Aero2.dll
----------------------------------------
System.Resources.ResourceManager
Assembly Version: 4.0.1.0
Win32 Version: 4.6.25714.01
CodeBase: file:///C:/Program%20Files/Docker/Docker/System.Resources.ResourceManager.DLL
----------------------------------------
WindowsFormsIntegration
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/WindowsFormsIntegration/v4.0_4.0.0.0__31bf3856ad364e35/WindowsFormsIntegration.dll
----------------------------------------
System.Web.Http
Assembly Version: 5.2.7.0
Win32 Version: 5.2.61128.0
CodeBase: file:///C:/Program%20Files/Docker/Docker/System.Web.Http.DLL
----------------------------------------
Docker.HttpApi
Assembly Version: 2.1.0.40693
Win32 Version: 2.1.0.40693
CodeBase: file:///C:/Program%20Files/Docker/Docker/Docker.HttpApi.DLL
----------------------------------------
Microsoft.Owin
Assembly Version: 4.0.1.0
Win32 Version: 4.0.80118.116
CodeBase: file:///C:/Program%20Files/Docker/Docker/Microsoft.Owin.DLL
----------------------------------------
Owin
Assembly Version: 1.0.0.0
Win32 Version: 1.0
CodeBase: file:///C:/Program%20Files/Docker/Docker/Owin.DLL
----------------------------------------
HttpOverStream.NamedPipe
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/Docker/Docker/HttpOverStream.NamedPipe.DLL
----------------------------------------
HttpOverStream
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/Docker/Docker/HttpOverStream.DLL
----------------------------------------
HttpOverStream.Server.Owin
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/Docker/Docker/HttpOverStream.Server.Owin.DLL
----------------------------------------
Microsoft.Owin.Hosting
Assembly Version: 4.0.1.0
Win32 Version: 4.0.80118.116
CodeBase: file:///C:/Program%20Files/Docker/Docker/Microsoft.Owin.Hosting.DLL
----------------------------------------
Anonymously Hosted DynamicMethods Assembly
Assembly Version: 0.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll
----------------------------------------
System.Web.Http.Owin
Assembly Version: 5.2.7.0
Win32 Version: 5.2.61128.0
CodeBase: file:///C:/Program%20Files/Docker/Docker/System.Web.Http.Owin.DLL
----------------------------------------
System.Net.Http.Formatting
Assembly Version: 5.2.7.0
Win32 Version: 5.2.61128.0
CodeBase: file:///C:/Program%20Files/Docker/Docker/System.Net.Http.Formatting.DLL
----------------------------------------
SMDiagnostics
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/SMDiagnostics/v4.0_4.0.0.0__b77a5c561934e089/SMDiagnostics.dll
----------------------------------------
System.Threading.Tasks.Extensions
Assembly Version: 4.2.0.0
Win32 Version: 4.6.26606.05
CodeBase: file:///C:/Program%20Files/Docker/Docker/System.Threading.Tasks.Extensions.DLL
----------------------------------------
HttpOverStream.Client
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/Docker/Docker/HttpOverStream.Client.DLL
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
我很好奇是否可以做些什么来修复异常。
此外,在更新之前,我可以让 Virtualbox VM 和 Docker 使用 Hyper-V 作为我的 Linux 盒子的管理程序并排工作。我已经检查过它是否在 BIOS 和 Windows SCM 上的服务中启用,并且确实已启用。任何帮助将不胜感激。
Github 问题:https://github.com/docker/for-win/issues/6689
预期行为
我有两个版本的 Windows,都带有 Insiders Builds。一个有功能 Docker,我可以 运行 Linux 和 Windows 容器都很好。但是,在最近更新和启用 WSL 2 之后,我发现我的一台机器无法再使用 Docker Desktop。我希望能够重新启动我的计算机并且 docker 守护程序将启动。此外,我希望重新安装它也能正常工作。我检查了我的 BIOS 并安装了 Hyper-V,并遵循了所有可能的故障排除建议。
实际行为
在更新之前,我曾经有一个正常工作的 Docker 桌面,但现在它不再工作了,这对开发工作流程造成了严重破坏。
所以我通过从 cmdlet 启用 hyper-v 来解决这个问题。
我访问了这个网站,这里发布的解决方案对我有用。
https://redmondmag.com/articles/2018/11/16/installing-hyperv-module-for-powershell.aspx
此外,我注意到在最新更新的 WSL 2
中也出现了问题。如果 Docker-Desktop 在启动时不工作,只是停留在 for-loop 初始化中,请尝试以下操作:
在提升的命令提示符下输入以下命令:
- 启用 Hyper V - 您可以通过 运行 以下命令以管理员身份执行此操作。
dism.exe /Online /Enable-Feature:Microsoft-Hyper-V /All
- 使用以下命令启用管理程序。
bcdedit /set hypervisorlaunchtype auto
然后重启,提示下载Linux内核
显然,Docker Desktop 在为任何使用 Hyper-V 和需要 WSL2 Linux 内核后端的 Linux 容器进行更新和安装的初始设置中忘记了这一点初始化容器。由 Microsoft 提供。
微软Link:https://docs.microsoft.com/en-us/windows/wsl/wsl2-kernel
下载以上内容^^
在对最近 Docker 人们更新到最新损坏版本的桌面问题的回应中,这是对我有用的(我在卸载和禁用 Hyper-V 模块后从网站下载然后复制又是巧克力版):
Windows
以下是对我有用的方法:
如果您想在 Windows 上进行,我会执行以下操作:
1. 在控制面板中卸载与 Docker-Desktop 相关的所有内容并禁用 Hyper-V
https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/enable-hyper-v
2. 如果您使用的是 Chocolatey,您也可以使用 choco uninstall package
卸载所有这些并禁用 Hyper-V https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/enable-hyper-v
3. 重新启动您的机器并进入 BIOS 菜单并确保您已启用虚拟化 and/or 超线程。
使用这个 link 查看如何进入 BIOS:https://support.lenovo.com/us/en/solutions/ht500006
您可能需要将 BIOS 重置为默认值(注意并非所有机器都支持虚拟化)
4.允许正常启动
5. 为 Windows 10 启用 Hyper-V
https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/enable-hyper-v
6. 运行 在提升的命令提示符下执行以下操作,并通过右键单击命令提示符允许管理访问:
dism.exe /Online /Enable-Feature:Microsoft-Hyper-V /All
bcdedit /set hypervisorlaunchtype auto
- 再重启一次计算机
- 开机
- 您可以转到 Docker-Desktop 或使用 Chocolatey 安装
如果您想通过网站安装它,我假设您知道去哪里。获取稳定版本。
10(选项 A)。通过 https://www.docker.com/products/docker-desktop 正常安装
10(选项 B)。使用巧克力:
在提升的管理控制台中打开 powershell 并安装 chocolatey
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
https://chocolatey.org/install
安装后运行:
choco install docker-desktop
巧克力 Link:https://chocolatey.org/packages/docker-desktop#releasenotes
Docker 发行说明:https://docs.docker.com/docker-for-windows/release-notes/
无论你决定什么,你都需要确保
1.您的系统支持虚拟化
2. 您在系统 BIOS 中启用了该功能
3.确保您已经下载了WSL 2背景:https://docs.microsoft.com/en-us/windows/wsl/wsl2-kernel
希望这对您有所帮助,我最近在使用 Docker-Desktop 时也遇到了很多问题。
因此,当我在 Windows 1909 上安装 Docker Desktop 和 Insiders 版本时,我遇到了这个问题。此外,我启用了 Hyper-V 和数据执行保护。我还检查了程序和功能中的 Windows 设置。我也提出了 GitHub 问题。
----------------------------------------
System.Runtime.InteropServices.WindowsRuntime
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.InteropServices.WindowsRuntime/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Runtime.InteropServices.WindowsRuntime.dll
----------------------------------------
Windows.Data
Assembly Version: 255.255.255.255
Win32 Version: 10.0.10011.16384
CodeBase: file:///C:/WINDOWS/system32/WinMetadata/Windows.Data.winmd
----------------------------------------
System.ValueTuple
Assembly Version: 4.0.3.0
Win32 Version: 4.6.26515.06
CodeBase: file:///C:/Program%20Files/Docker/Docker/System.ValueTuple.DLL
----------------------------------------
System.Collections
Assembly Version: 4.0.11.0
Win32 Version: 4.6.25714.01
CodeBase: file:///C:/Program%20Files/Docker/Docker/System.Collections.DLL
----------------------------------------
Docker.Win32Helpers
Assembly Version: 1.0.7257.10303
Win32 Version:
CodeBase: file:///C:/Program%20Files/Docker/Docker/Docker.Win32Helpers.DLL
----------------------------------------
System.Net.Http
Assembly Version: 4.2.0.0
Win32 Version: 4.6.26011.01
CodeBase: file:///C:/Program%20Files/Docker/Docker/System.Net.Http.DLL
----------------------------------------
System.Management.Automation
Assembly Version: 3.0.0.0
Win32 Version: 10.0.19041.1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Management.Automation/v4.0_3.0.0.0__31bf3856ad364e35/System.Management.Automation.dll
----------------------------------------
PresentationFramework.Aero2
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework.Aero2/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.Aero2.dll
----------------------------------------
System.Resources.ResourceManager
Assembly Version: 4.0.1.0
Win32 Version: 4.6.25714.01
CodeBase: file:///C:/Program%20Files/Docker/Docker/System.Resources.ResourceManager.DLL
----------------------------------------
WindowsFormsIntegration
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/WindowsFormsIntegration/v4.0_4.0.0.0__31bf3856ad364e35/WindowsFormsIntegration.dll
----------------------------------------
System.Web.Http
Assembly Version: 5.2.7.0
Win32 Version: 5.2.61128.0
CodeBase: file:///C:/Program%20Files/Docker/Docker/System.Web.Http.DLL
----------------------------------------
Docker.HttpApi
Assembly Version: 2.1.0.40693
Win32 Version: 2.1.0.40693
CodeBase: file:///C:/Program%20Files/Docker/Docker/Docker.HttpApi.DLL
----------------------------------------
Microsoft.Owin
Assembly Version: 4.0.1.0
Win32 Version: 4.0.80118.116
CodeBase: file:///C:/Program%20Files/Docker/Docker/Microsoft.Owin.DLL
----------------------------------------
Owin
Assembly Version: 1.0.0.0
Win32 Version: 1.0
CodeBase: file:///C:/Program%20Files/Docker/Docker/Owin.DLL
----------------------------------------
HttpOverStream.NamedPipe
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/Docker/Docker/HttpOverStream.NamedPipe.DLL
----------------------------------------
HttpOverStream
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/Docker/Docker/HttpOverStream.DLL
----------------------------------------
HttpOverStream.Server.Owin
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/Docker/Docker/HttpOverStream.Server.Owin.DLL
----------------------------------------
Microsoft.Owin.Hosting
Assembly Version: 4.0.1.0
Win32 Version: 4.0.80118.116
CodeBase: file:///C:/Program%20Files/Docker/Docker/Microsoft.Owin.Hosting.DLL
----------------------------------------
Anonymously Hosted DynamicMethods Assembly
Assembly Version: 0.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll
----------------------------------------
System.Web.Http.Owin
Assembly Version: 5.2.7.0
Win32 Version: 5.2.61128.0
CodeBase: file:///C:/Program%20Files/Docker/Docker/System.Web.Http.Owin.DLL
----------------------------------------
System.Net.Http.Formatting
Assembly Version: 5.2.7.0
Win32 Version: 5.2.61128.0
CodeBase: file:///C:/Program%20Files/Docker/Docker/System.Net.Http.Formatting.DLL
----------------------------------------
SMDiagnostics
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/SMDiagnostics/v4.0_4.0.0.0__b77a5c561934e089/SMDiagnostics.dll
----------------------------------------
System.Threading.Tasks.Extensions
Assembly Version: 4.2.0.0
Win32 Version: 4.6.26606.05
CodeBase: file:///C:/Program%20Files/Docker/Docker/System.Threading.Tasks.Extensions.DLL
----------------------------------------
HttpOverStream.Client
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/Docker/Docker/HttpOverStream.Client.DLL
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
我很好奇是否可以做些什么来修复异常。 此外,在更新之前,我可以让 Virtualbox VM 和 Docker 使用 Hyper-V 作为我的 Linux 盒子的管理程序并排工作。我已经检查过它是否在 BIOS 和 Windows SCM 上的服务中启用,并且确实已启用。任何帮助将不胜感激。
Github 问题:https://github.com/docker/for-win/issues/6689
预期行为 我有两个版本的 Windows,都带有 Insiders Builds。一个有功能 Docker,我可以 运行 Linux 和 Windows 容器都很好。但是,在最近更新和启用 WSL 2 之后,我发现我的一台机器无法再使用 Docker Desktop。我希望能够重新启动我的计算机并且 docker 守护程序将启动。此外,我希望重新安装它也能正常工作。我检查了我的 BIOS 并安装了 Hyper-V,并遵循了所有可能的故障排除建议。
实际行为 在更新之前,我曾经有一个正常工作的 Docker 桌面,但现在它不再工作了,这对开发工作流程造成了严重破坏。
所以我通过从 cmdlet 启用 hyper-v 来解决这个问题。
我访问了这个网站,这里发布的解决方案对我有用。 https://redmondmag.com/articles/2018/11/16/installing-hyperv-module-for-powershell.aspx
此外,我注意到在最新更新的 WSL 2
中也出现了问题。如果 Docker-Desktop 在启动时不工作,只是停留在 for-loop 初始化中,请尝试以下操作:
在提升的命令提示符下输入以下命令:
- 启用 Hyper V - 您可以通过 运行 以下命令以管理员身份执行此操作。
dism.exe /Online /Enable-Feature:Microsoft-Hyper-V /All
- 使用以下命令启用管理程序。
bcdedit /set hypervisorlaunchtype auto
然后重启,提示下载Linux内核
显然,Docker Desktop 在为任何使用 Hyper-V 和需要 WSL2 Linux 内核后端的 Linux 容器进行更新和安装的初始设置中忘记了这一点初始化容器。由 Microsoft 提供。
微软Link:https://docs.microsoft.com/en-us/windows/wsl/wsl2-kernel
下载以上内容^^
在对最近 Docker 人们更新到最新损坏版本的桌面问题的回应中,这是对我有用的(我在卸载和禁用 Hyper-V 模块后从网站下载然后复制又是巧克力版):
Windows
以下是对我有用的方法:
如果您想在 Windows 上进行,我会执行以下操作:
1. 在控制面板中卸载与 Docker-Desktop 相关的所有内容并禁用 Hyper-V
https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/enable-hyper-v
2. 如果您使用的是 Chocolatey,您也可以使用 choco uninstall package
卸载所有这些并禁用 Hyper-V https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/enable-hyper-v
3. 重新启动您的机器并进入 BIOS 菜单并确保您已启用虚拟化 and/or 超线程。
使用这个 link 查看如何进入 BIOS:https://support.lenovo.com/us/en/solutions/ht500006 您可能需要将 BIOS 重置为默认值(注意并非所有机器都支持虚拟化) 4.允许正常启动 5. 为 Windows 10 启用 Hyper-V https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/enable-hyper-v 6. 运行 在提升的命令提示符下执行以下操作,并通过右键单击命令提示符允许管理访问:
dism.exe /Online /Enable-Feature:Microsoft-Hyper-V /All
bcdedit /set hypervisorlaunchtype auto
- 再重启一次计算机
- 开机
- 您可以转到 Docker-Desktop 或使用 Chocolatey 安装 如果您想通过网站安装它,我假设您知道去哪里。获取稳定版本。 10(选项 A)。通过 https://www.docker.com/products/docker-desktop 正常安装 10(选项 B)。使用巧克力: 在提升的管理控制台中打开 powershell 并安装 chocolatey
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
https://chocolatey.org/install
安装后运行:
choco install docker-desktop
巧克力 Link:https://chocolatey.org/packages/docker-desktop#releasenotes Docker 发行说明:https://docs.docker.com/docker-for-windows/release-notes/
无论你决定什么,你都需要确保 1.您的系统支持虚拟化 2. 您在系统 BIOS 中启用了该功能 3.确保您已经下载了WSL 2背景:https://docs.microsoft.com/en-us/windows/wsl/wsl2-kernel
希望这对您有所帮助,我最近在使用 Docker-Desktop 时也遇到了很多问题。