Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error response from daemon: open \\.\pipe\docker_engine_linux: The system cannot find the file specified

Tags:

docker

hyper-v

While I am trying to start with docker on my windows 10 machine it is returning the following error.

ERROR: open \.\pipe\docker_engine_linux: The system cannot find the file specified.

I found when I logon to my computer, the hyper VM could not run docker virtual machine automatically though my docker desktop is running. Once I start docker virtual machine on hyper VM and restart docker once again, it works okay. But this is not a permanent solution. Could I get some help please?

like image 504
Sangita Satapathy Avatar asked Aug 09 '20 19:08

Sangita Satapathy


People also ask

Where is my Docker daemon running?

Another way to check for a running Docker daemon is by inspecting its process ID file. The daemon writes its process ID to /var/run/docker. pid each time it starts up. When this file exists, Docker should be running and ready for CLI connections.

How long does Docker desktop take to start?

Enables integrated user interface to view and monitor Docker containers. Quickly starts Docker within ten seconds.


3 Answers

Restarting Docker Desktop for Windows helped me. You can do that by right-click on tray icon and selecting restart.

like image 126
JanBrus Avatar answered Sep 18 '22 21:09

JanBrus


The same problem with Me. I am writing this command in PowerShell Run As Administrator. Switch Docker from Windows to Linux write the command like this

cd "C:\Program Files\Docker\Docker"

./DockerCli.exe -SwitchLinuxEngine

This is the Simple way to solve this.

like image 20
Dhruv Mehta Avatar answered Sep 17 '22 21:09

Dhruv Mehta


In my case, the reason for the error was even easier than the main answer ("close and open it again") suggests. Docker Desktop was just not running anymore!

When I hovered over the tray icon, it vanished.


Further details:

Docker Desktop had crashed, or it was closed because of a forced update. I had this problem after updating Java runtime environment.

When I opened Docker Desktop then, an update ran, and I could not even choose between yes or no, running for at least 5 minutes with the tray icon only showing "Docker Desktop is starting". The menu had crashed as well.

like image 28
questionto42standswithUkraine Avatar answered Sep 20 '22 21:09

questionto42standswithUkraine