Search code examples
dockerdocker-machine

System.InvalidOperationException: Failed to deploy distro docker-desktop to <localpath>: exit code: -1


I am trying to run docker Desktop in my windows 10 Local. have installed it successfully but while running it I am getting the below error.

System.InvalidOperationException:
Failed to deploy distro docker-desktop to <localpath>: exit code: -1
 stdout: The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.

I think it is saying some windows services need to be enabled, but I don't know which service has to be enabled could someone please help me with this concern?

docker version 
C:\Users\lenova>docker --version
Docker version 20.10.2, build 2291f61

Screenshot


Solution

    • Uninstall Docker.
    • Uncheck Containers, Hyper-V, Windows Subsystem for Linux in Windows features
    • Restart the system
    • Install Docker Desktop
    • Restart System
    • Start Docker Desktop