docker / for-win

Bug reports for Docker Desktop for Windows
https://www.docker.com/products/docker#/windows
1.86k stars 290 forks source link

Can't use Docker on Windows. open //./pipe/docker_engine: The system cannot find the file specified #5919

Closed kamalpreetsingh24 closed 2 years ago

kamalpreetsingh24 commented 4 years ago

I am using Docker Desktop 2.2.0.3 (42716) stable release in Windows 8.1 VM. Currently, using Linux Containers and this is what I get If I run 'Docker Version' in Powershell.

PS C:\WINDOWS\system32> docker version Client: Docker Engine - Community Version: 19.03.5 API version: 1.40 Go version: go1.12.12 Git commit: 633a0ea Built: Wed Nov 13 07:22:37 2019 OS/Arch: windows/amd64 Experimental: false Error response from daemon: open \.\pipe\docker_engine_linux: The system cannot find the file specified.

However, If I restart Docker Desktop then it works fine but only for some time (say 10 to 15 minutes), PS C:\WINDOWS\system32> docker version Client: Docker Engine - Community Version: 19.03.5 API version: 1.40 Go version: go1.12.12 Git commit: 633a0ea Built: Wed Nov 13 07:22:37 2019 OS/Arch: windows/amd64 Experimental: false

Server: Docker Engine - Community Engine: Version: 19.03.5 API version: 1.40 (minimum version 1.12) Go version: go1.12.12 Git commit: 633a0ea Built: Wed Nov 13 07:29:19 2019 OS/Arch: linux/amd64 Experimental: false containerd: Version: v1.2.10 GitCommit: b34a5c8af56e510852c35414db4c1f4fa6172339 runc: Version: 1.0.0-rc8+dev GitCommit: 3e425f80a8c931f88e6d94a8c831b9d5aa481657 docker-init: Version: 0.18.0 GitCommit: fec3683

"docker run hello-world" also confirms everything is looking good "This message shows that your installation appears to be working correctly."

I am trying to build a Docker Image from the DockerFile and the base image which I am using is alpine.

I expect about 20 minutes of time to build the Docker image but because of Docker Desktop stopping frequently, the image build process halts.

Is there any workaround to fix this issue?

afarid commented 4 years ago

Fixed after restarting windows machine.

binhex commented 4 years ago

duplicate of https://github.com/docker/for-win/issues/4495

opolancoh commented 4 years ago

Restarting Docker or Windows solves problem, but it goes down again after 15 mins.

Mechatronian commented 4 years ago

same issue

joseucarvajal commented 4 years ago

same issue

I have solved by doing this:

cd C:\Program Files\Docker\Docker\resources dockerd.exe Now execute 'docker version' on a new powershell as administrator

10152672 commented 4 years ago

same issue

I have solved by doing this:

cd C:\Program Files\Docker\Docker\resources dockerd.exe Now execute 'docker version' on a new powershell as administrator

I love you man!

kalyankalapala commented 4 years ago

dockerd.exe

Not working for me

neopanda90 commented 4 years ago

same issue

I have solved by doing this:

cd C:\Program Files\Docker\Docker\resources dockerd.exe Now execute 'docker version' on a new powershell as administrator

Thank You

Sean12697 commented 3 years ago

same issue

I have solved by doing this:

cd C:\Program Files\Docker\Docker\resources dockerd.exe Now execute 'docker version' on a new powershell as administrator

It worked for me, cheers! 😁

Allen2316 commented 3 years ago

dockerd.exe

No funciona para mi

In other powerShell as administrator cd path/Dockerfile open file

gizzm0 commented 3 years ago

Not working for me

andras-varro commented 3 years ago

I had the same issue when using a Hyper-V (Windows 10 as guest) as template for Packer. The issue was caused by insufficient system resources. By default Hyper-V gives 1Gb RAM and 1 virtual core. The solution was to specify in the Packer script to configure the Hyper-V to use 16Gb RAM and 2 virtual cores.

"builders": [
    {
    "type": "hyperv-vmcx",
    "memory": "16384",
    "cpus": "2",
[...]
   }
}
[...]

I hope this helps others, it took a few hours until I realized, that Hyper-V does not keep the VM settings on export.

maxiride commented 3 years ago

As pointed out by @binhex this is a duplicate of #4495, please concentrate all efforts on a single ticket.

DSI-STEVET commented 3 years ago

I could not get Docker Desktop to work. I installed Docker, uninstalled Docker, tried the trouble shooting tools. I changed files settings form memory in the Docker configuration files. I tried running the program from the command line as described by Allen2316. The program would always fail to start. I installed Docker Desktop in the following sequence and it worked. I would suggest going through these steps to confirm a clean install before spending a lot of time with configurations and alternate run methods on your computer.

  1. Uninstall Docker Desktop if it is installed.
  2. I restarted my computer.
  3. I installed Docker Desktop for Windows after the fresh boot. I did not run Docker Desktop as this caused problem before.
  4. I restarted the computer and let Docker Desktop load at startup.
  5. Docker Desktop loaded correctly and has not given problems since.
ctj01 commented 3 years ago

I solve this problem using this command in powershell as administrator

Enable-WindowsOptionalFeature -Online -FeatureName $("Microsoft-Hyper-V", "Containers") -All

theneocosmic commented 3 years ago

I solve this problem using this command in powershell as administrator

Enable-WindowsOptionalFeature -Online -FeatureName $("Microsoft-Hyper-V", "Containers") -All

Thanks!!!! this way working for me!! :)

docker-robott commented 3 years ago

Issues go stale after 90 days of inactivity. Mark the issue as fresh with /remove-lifecycle stale comment. Stale issues will be closed after an additional 30 days of inactivity.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle stale

docker-robott commented 2 years ago

Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle locked