error during connect: This error may indicate that the docker daemon is not running. docker_engine: The system cannot find the file specified.

beginer
beginer
1544 Points
52 Posts

I'm trying to build docker image and even any docker command, getting following error:

error during connect: This error may indicate that the docker daemon is not running.
: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/containers/json
: open //./pipe/docker_engine: The system cannot find the file specified.

 

Views: 73149
Total Answered: 11
Total Marked As Answer: 2
Posted On: 01-Feb-2021 02:18

Share:   fb twitter linkedin
Answers
Priya
Priya
1194 Points
33 Posts
         

We can do this in order to switch Docker daemon:

  • With Powershell:
    • Open Powershell as administrator
    • Launch command: & 'C:\Program Files\Docker\Docker\DockerCli.exe' -SwitchDaemon
  • OR, with cmd:
    • Open cmd as administrator
    • Launch command: "C:\Program Files\Docker\Docker\DockerCli.exe" -SwitchDaemon
Posted On: 01-Feb-2021 03:02
beginer
beginer
1544 Points
52 Posts
         

Thanks. Issue resolved by switching daemon:

Posted On: 01-Feb-2021 03:08
Garron
Garron
30 Points
0 Posts
         

This worked for me as well once I realized I didn't have a Linux distribution installed!

Posted On: 21-Sep-2021 10:10
amalda orell
amalda ...
10 Points
0 Posts
         

Is there any other solution?please

Posted On: 10-Jun-2022 05:34
Chang
Chang
10 Points
0 Posts
         

this is awesome suggestion which work for me ;)

Posted On: 03-Jul-2022 22:39
rishabh saharan
rishabh...
10 Points
0 Posts
         

Didn't work for me, do we have any other solution

Posted On: 18-Jan-2023 11:19
Anas Benhalima
Anas Be...
10 Points
0 Posts
         

Hello, i have the same issue,i tried both on cmd and window powershell, if someone can give me some help please.

Posted On: 25-Jan-2023 09:56
Raj
Raj
648 Points
26 Posts
         
  1. First, verify that Docker Desktop application is running. If not, launch it: that will run the docker daemon (just wait few minutes).
  2. Then, if the error still persist, you can try to switch Docker daemon type, as explained below:

 

  1. With Powershell:
    1. Open Powershell as administrator
    2. Launch command: & 'C:\Program Files\Docker\Docker\DockerCli.exe' -SwitchDaemon
  2. OR, with cmd:
    1. Open cmd as administrator
    2. Launch command: "C:\Program Files\Docker\Docker\DockerCli.exe" -SwitchDaemon
Posted On: 25-Jan-2023 10:16
great! thanks.
 - Api Test  12-May-2023 03:29
Abdul Moiz
Abdul Moiz
10 Points
0 Posts
         

You can see this guide.

Posted On: 17-Jun-2023 13:56
Satyam Sharma
Satyam ...
10 Points
0 Posts
         

Why do we do that? 

It was working fine but suddenly this error comes..

Why do we need to switch to Docker Daemon

what id docker daemon..

Can anyone explain me?

Posted On: 26-Sep-2023 05:07
 Log In to Chat