ERRO[0044] failed to dial gRPC: cannot connect to the Docker daemon

孤人 提交于 2020-01-14 08:42:28

问题


I'm using Windows 10 Home and I got this error when connecting to docker:

ERRO[0044] failed to dial gRPC: cannot connect to the Docker daemon. Is 'docker daemon' running on this host?: dial tcp 192.168.99.101:2376: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
context canceled

Can anybody help? I have seen solutions for Linux and OS, but not for windows


回答1:


I also use Window 10 Home edition, On windows, run cmd in adminstrator mode and run the folowing lines of code

docker-machine start
docker-machine.exe env --shell cmd > e:\servers\docker\setenv.bat
call e:\servers\docker\setenv.bat
del e:\servers\docker\setenv.bat

Continue in the same CMD instance to run your docker client commands Dont forget to change docker folder path based on your environments.




回答2:


Adding my answer from ERRO[0043] failed to dial gRPC: unable to upgrade to h2c, received 501:

Following one of the comments in https://github.com/docker-library/docker/issues/71, I enabled Experimental features in Settings->Daemon and the problem went away. I have no idea how or why it fixed it and another commenter there says they fixed it by disabling Experimental features.



来源:https://stackoverflow.com/questions/55308947/erro0044-failed-to-dial-grpc-cannot-connect-to-the-docker-daemon

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