gpt4 book ai didi

docker - 在 docker 中切换到 Linux 容器时出错

转载 作者:行者123 更新时间:2023-12-01 19:33:54 29 4
gpt4 key购买 nike

我已经安装了 docker 。当它在 Windows 容器中运行时,它工作正常。但是如果我切换到 Linux 容器得到以下错误。

操作系统:Windows 10
docker 桌面:2.2.0.3

错误:

Docker.Core.Backend.BackendDestroyException:
Unable to stop Hyper-V VM: Service 'Hyper-V Host Compute Service (vmcompute)' cannot be started due to the following error: Cannot start service vmcompute on computer '.'.
at Enable-MobyLinuxRequiredService, <No file>: line 103
at <ScriptBlock>, <No file>: line 804
at Docker.Core.Pipe.NamedPipeClient.<TrySendAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Docker.Core.Pipe.NamedPipeClient.Send(String action, Object[] parameters)
at Docker.Actions.<>c__DisplayClass39_0.<SwitchDaemon>b__0()
at Docker.ApiServices.TaskQueuing.TaskQueue.<>c__DisplayClass18_0.<.ctor>b__1()

最佳答案

根据 this

尝试以下操作:

1, Open "Window Security"
2, Open "App & Browser control"
3, Click "Exploit protection settings" at the bottom
4, Switch to "Program settings" tab
5, Locate "C:\WINDOWS\System32\vmcompute.exe" in the list and expand it
6, Click "Edit"
7, Scroll down to "Code flow guard (CFG)" and uncheck "Override system settings"
8, Start vmcompute from powershell "net start vmcompute"

关于docker - 在 docker 中切换到 Linux 容器时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60313564/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com