docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? Linux Bash Shell on windows 10

核能气质少年 提交于 2020-12-06 23:37:11

问题


I am new to Docker. I'm trying to work with it on windows. I have Windows 10 Family so I installed Linux Bash Shell. When I run this command:

$ docker run hello-world

I get : docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?. And when I run

$ systemctl status docker

I get

System has not been booted with systemd as init system (PID 1). Can't operate

回答1:


It seems like you wont be able to use docker in Windows 10 family, since docker Desktop requires specific Windows version, as said in official documentation.

System Requirements

Windows 10 64-bit: Pro, Enterprise, or Education (Build 15063 or later).

What you can try is to run linux-based virtual machine on you Windows host, and run docker inside of it. But even if you succeeded, you will lose all advantages of the docker in resources consumption.



来源:https://stackoverflow.com/questions/60935907/docker-cannot-connect-to-the-docker-daemon-at-unix-var-run-docker-sock-is-t

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