There are two types of installer one is Community and other is Enterprise. Here I am discussing how we can install Docker Desktop Community version on Windows 10. Please find here latest stable version of Docker and run installer.
Prerequisites
Hyper-v manager should be installed and enable.If not installed then run below command through Windows Powershell using Admin Privileges.
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
Enable-WindowsOptionalFeature -Online -FeatureName Containers -All
Server Service should be started and enabled.
If this is disabled then enable the service and start using admin Privileges.

Errors during Direct Installation
If you would try to run installer directly, you would get below error while installing Docker Desktop it means that Server Service is not started on your machine. So, please Restart Server Service.
[22:51:02.244] [InstallHandler] No installation found
[22:51:02.246] [InstallHandler] Using embedded package
[22:51:02.607] [InstallWorkflow] Using package: res:CommunityInstaller.DockerDesktop.d4w
[22:51:02.610] [InstallWorkflow] Downloading
[22:51:05.926] [InstallWorkflow] Extracting manifest
[22:51:07.630] [InstallWorkflow] Checking prerequisites
[22:51:08.490] [ServicePreRequisite] Failed to run prerequisite service: System.AggregateException: One or more errors occurred. ---> CommunityInstaller.Win32ExceptionWithContext: Failed to start service: The service cannot be started, either because it is disabled or because it has no enabled devices associated with it
at CommunityInstaller.Service.Service.<StartAsync>d__4.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.Service.Manager.<StartServiceAsync>d__4.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.ServicePreRequisite.<EnsureServiceRunningAsync>d__14.MoveNext()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at System.Lazy`1.CreateValue()
at System.Lazy`1.LazyInitValue()
at CommunityInstaller.ServicePreRequisite.get_IsFullFilled()
---> (Inner Exception #0) CommunityInstaller.Win32ExceptionWithContext (0x80004005): Failed to start service: The service cannot be started, either because it is disabled or because it has no enabled devices associated with it
at CommunityInstaller.Service.Service.<StartAsync>d__4.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.Service.Manager.<StartServiceAsync>d__4.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.ServicePreRequisite.<EnsureServiceRunningAsync>d__14.MoveNext()<---
[22:51:08.495] [InstallWorkflow] Prerequisite failed: Docker Desktop requires the Server service to be enabled.
Comments
Post a Comment