在Windows 10上安装Docker

5
我正在尝试在 Windows 10 企业版上安装 Docker,但遇到了以下异常。
安装失败。
The Server service is not started.

   at System.DirectoryServices.DirectoryEntry.RefreshCache()
   at System.DirectoryServices.AccountManagement.PrincipalContext.DoMachineInit()
   at System.DirectoryServices.AccountManagement.PrincipalContext.Initialize()
   at System.DirectoryServices.AccountManagement.PrincipalContext.get_QueryCtx()
   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 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   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 10电脑是否启用了Hyper-V? - Soumen Mukherjee
2个回答

12

如果 server 服务未启动,请前往 services 应用程序并启动该服务(如图所示)enter image description here

双击 server 服务,选择自动模式,然后按“确定”按钮开始 (如下图所示)。 enter image description here

这样就能正常运行了。


1

可能会出现任何问题。一个问题可能是因为Windows服务Server被禁用了。 修复方法:启用并在服务应用程序上启动。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接