for-win icon indicating copy to clipboard operation
for-win copied to clipboard

Install Docker Desktop 2.2.03 failed on Window10 Pro

Open cycbluesky opened this issue 6 years ago • 9 comments

I uninstalled a pre-version docker desktop and download 2.2.03 to install failed. My machine is OS Name Microsoft Windows 10 Pro Version 10.0.18362 Build 18362 Next is error log.

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.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.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.d__24.MoveNext()

cycbluesky avatar Mar 13 '20 05:03 cycbluesky

I had the same problem, did you solve it?

Chen-DaYi avatar Mar 16 '20 03:03 Chen-DaYi

It's strange. I can install Docker Desktop 2.0.0.0-win81 without any problems

Chen-DaYi avatar Mar 19 '20 08:03 Chen-DaYi

Enable / start the "Workstation" service

Poliwrath avatar Mar 26 '20 19:03 Poliwrath

@Poliwrath Thanks! I found the Workstation service crashed due to windows update failed. After I upgaded windows to version 1909, the Workstation service was back. And now I installed Docker Desktop 2.2.03 successfully. @SevnChen try to check your Workstation service.

cycbluesky avatar Mar 29 '20 02:03 cycbluesky

I got the same error after Docker prompted to update itself. Not only did the update fail, but it also deleted the previous installation so I ended up without Docker after this and had to re-download all 900Mb of Docker for Windows.exe.

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()

ivanov avatar Apr 29 '20 02:04 ivanov

Thanks for the reports and sorry for the inconvenience.

It probably is because for some reason you don’t have the Workstation system service started. We have added a prerequisite check in the installer to try to start it in that case and if that fails report an error (at least it won’t start the installation process and uninstall the previous version if any). It’s been released to the Edge branch starting with 2.2.3.0, but not yet to the Stable branch (soon!).

If you’re still having this problem after updating to or past to 2.2.3.0 please shout!

mat007 avatar Apr 30 '20 05:04 mat007

I forgot to come back here and report that starting the Workstation service did also fix this issue for me.

ivanov avatar May 01 '20 01:05 ivanov

Issues go stale after 90 days of inactivity. Mark the issue as fresh with /remove-lifecycle stale comment. Stale issues will be closed after an additional 30 days of inactivity.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle stale

docker-robott avatar Jul 30 '20 01:07 docker-robott

Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle locked

docker-robott avatar Sep 28 '20 03:09 docker-robott