繁体   English   中英

Windows 10 Pro 上的 Docker 安装失败

[英]Docker Installation Failure on Windows 10 Pro

我启用了 hyper-v,你的 Docker for Windows 安装程序应该启用所需的 Windows 功能。

每次我尝试在这台 Windows 10 专业版计算机上安装 Docker 时,都会导致以下异常。 我想到了其他选择,比如在 WSL 上安装 Docker 然后意识到 Docker 守护进程不能直接在 WSL 中运行,但可以与 Docker for Windows 交互

Installation Failed

The flat name of the target computer could not be retrieved (2138).
   at System.DirectoryServices.AccountManagement.SAMStoreCtx.LoadComputerInfo()
   at System.DirectoryServices.AccountManagement.SAMStoreCtx.get_MachineUserSuppliedName()
   at System.DirectoryServices.AccountManagement.SAMStoreCtx.FindNativeByNT4IdentRef(Type principalType, String urnValue)
   at System.DirectoryServices.AccountManagement.SAMStoreCtx.FindPrincipalByIdentRef(Type principalType, String urnScheme, String urnValue, DateTime referenceDate)
   at System.DirectoryServices.AccountManagement.Principal.FindByIdentityWithTypeHelper(PrincipalContext context, Type principalType, Nullable`1 identityType, String identityValue, DateTime refDate)
   at System.DirectoryServices.AccountManagement.Principal.FindByIdentityWithType(PrincipalContext context, Type principalType, String identityValue)
   at System.DirectoryServices.AccountManagement.GroupPrincipal.FindByIdentity(PrincipalContext context, String identityValue)
   at CommunityInstaller.CreateGroupAction.<DoAsync>b__33_0()
   at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at CommunityInstaller.InstallWorkflow.<HandleD4WPackageAsync>d__29.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at CommunityInstaller.InstallWorkflow.<ProcessAsync>d__24.MoveNext()

我该如何解决这个问题? 预先感谢您的帮助。

解决方案:

启动 Windows 服务“工作站”应该可以解决这个问题。 似乎只需要安装。 : https://forums.docker.com/t/install-fails-on-windows-10/87888

启动Workstation服务:

以管理员身份打开 CMD 并运行命令:

net start workstation

https://www.windows-commandline.com/start-or-stop-workstation-service-from/

暂无
暂无

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM