Windows 10 Pro上的Docker安装失败

时间:2020-03-20 08:43:19

标签: windows docker

我已启用hyper-v,您的Windows Docker安装程序应启用必需的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()

如何解决此问题?预先感谢您的协助。

1 个答案:

答案 0 :(得分:2)

解决方案:

启动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/