Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Not able to start docker Desktop in Windows

I am not able to start the Docker container in Microsoft Windows 10 profession. As I found the cause of this error is due to the docker engine is failing to start.

After installing docker I am able to run only the docker version command.

-> docker --version

As I found the error which is showing docker daemon is not running in windows while running any other docker commands on CMD.

I also enabled (checked) the Hyper-V option in "Turn Windows features on or off" in the Control panel -> Programs -> Turn Windows features on or off.

enter image description here

like image 890
user3552342 Avatar asked Nov 24 '25 04:11

user3552342


1 Answers

The error is related to the daemon part:

In the default daemon configuration on Windows, the docker client must be run elevated to connect.

We can switch the Docker daemon as an elevated user in order to run the docker daemon in the Windows professional:

Run below command with Windows Powershell as administrator:

Run the PowerShell command: -

& 'C:\Program Files\Docker\Docker\DockerCli.exe' -SwitchDaemon

OR

You can run the below command on CMD as administrator:

Run the CMD command: -

"C:\Program Files\Docker\Docker\DockerCli.exe" -SwitchDaemon

like image 178
user3552342 Avatar answered Nov 26 '25 17:11

user3552342