Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/docker/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows 10 Pro上的Docker安装失败_Windows_Docker - Fatal编程技术网

Windows 10 Pro上的Docker安装失败

Windows 10 Pro上的Docker安装失败,windows,docker,Windows,Docker,我已启用hyper-v,Docker for Windows installer应启用所需的Windows功能 每次我尝试在Windows 10 pro计算机上安装Docker时,都会出现以下异常。我想到了其他选项,比如在WSL上安装Docker,然后意识到Docker守护进程不能直接在WSL中运行,但可以与Docker for Windows交互 Installation Failed The flat name of the target computer could not be ret

我已启用hyper-v,Docker for Windows installer应启用所需的Windows功能

每次我尝试在Windows 10 pro计算机上安装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()
安装失败
无法检索目标计算机的平面名称(2138)。
在System.DirectoryServices.AccountManagement.SAMStoreCtx.LoadComputerInfo()中
在System.DirectoryServices.AccountManagement.SAMStoreCtx.get_MachineUserSuppliedName()中
位于System.DirectoryServices.AccountManagement.SAMStoreCtx.FindNativeByNT4IdentRef(类型principalType,字符串urnValue)
位于System.DirectoryServices.AccountManagement.SAMStoreCtx.FindPrincipalByIdentRef(类型principalType、字符串urnScheme、字符串urnValue、日期时间referenceDate)
位于System.DirectoryServices.AccountManagement.Principal.FindByIdentityWithTypeHelper(PrincipalContext上下文,键入principalType,null`1 identityType,String identityValue,DateTime refDate)
位于System.DirectoryServices.AccountManagement.Principal.FindByIdentityWithType(PrincipalContext上下文,类型principalType,字符串标识值)
位于System.DirectoryServices.AccountManagement.GroupPrincipal.FindByIdentity(PrincipalContext上下文,字符串标识值)
在CommunityInstaller.CreateGroupAction.b_u 33_u0()上
在System.Threading.Tasks.Task.Execute()中
---来自引发异常的上一个位置的堆栈结束跟踪---
在System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()中
在CommunityInstaller.InstallWorkflow.d_u29.MoveNext()上
---来自引发异常的上一个位置的堆栈结束跟踪---
在System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()中
在System.Runtime.CompilerServices.TaskWaiter.HandleNonSuccessAndDebuggerNotification(任务任务)中
在CommunityInstaller.InstallWorkflow.d_u24.MoveNext()上

我如何解决这个问题?提前感谢您的帮助。

解决方案:

启动Windows服务“工作站”应该可以解决此问题。 似乎只有安装时才需要:

启动
工作站
服务:

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

net start workstation