docker error during connect - deamon is not running on Windows 10

僤鯓⒐⒋嵵緔 提交于 2019-12-11 02:35:53

问题


I am using Windows 10 pc. Recently I have downloaded docker for Windows and it was working fine. But, recently a problem occurred and is it not start anymore it just hang in the status starting.

I haven't changed any configuration and I am wondering what may cause this problem.

I use the latest version of docker.

On my pc, Hyper-V is enabled and Containers are disabled. (Since, I son't use Windows container, I don't think it is necessary. )

On task bar, when I check docker icon. It is always in starting status.

When I check services, it seems it is running.

when I try docker command on powershell. It could not found docker command.

I am not in an urgency to set up docker, I was just playing with it. But, suddenly this problem occured. I have been trying to solve this problem for a while. I have search similar problems and uninstall docker several times while searching for a solution. It is wierd and disturbing that a tool suddenly stop working and there is no trace to find the root problem. I suspect may be company sucurity policy change effects my computer and cause this problem But I could not find any clue to support this.

My question is what should I do to understand what is wrong. What cause the problem and how can it be fixed.

Note: When I restart computer following error occurs.

content of the error message:

error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.30/containers/json: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running.

at Docker.Backend.DockerDaemonChecker.Check(Func`1 isDaemonProcessStillRunning) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Backend\DockerDaemonChecker.cs:line 63 at Docker.Core.Pipe.NamedPipeServer.<>c__DisplayClass9_0.b__0(Object[] parameters) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Core\pipe\NamedPipeServer.cs:line 47 at Docker.Core.Pipe.NamedPipeServer.RunAction(String action, Object[] parameters) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Core\pipe\NamedPipeServer.cs:line 145

When I run docker ps -a following error occurs.

docker ps -a error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.30/containers/json?all=1: open //./pipe/docker_engine : The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be r un elevated to connect. This error may also indicate that the docker daemon is not running.


回答1:


Try changing the security permissions on the docker.exe to include users and restart your PC. This should fix it.




回答2:


One possible cause I can think of is that a given PowerShell instance won't "know about" things that didn't exist when it was first launched. Have you tried starting opening a new PowerShell window after installing Docker?

EDIT: Well, sounds like that's not the issue. Does a regular cmd shell recognize the Docker commands?



来源:https://stackoverflow.com/questions/45824910/docker-error-during-connect-deamon-is-not-running-on-windows-10

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!