docker:无法通过unix:///var/run/docker.sock连接到Docker守护程序.泊坞窗守护程序正在运行吗?Windows 10上的Linux Bash Shell [英] docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? Linux Bash Shell on windows 10
问题描述
我是Docker的新手.我正在尝试在Windows上使用它.我有Windows 10家族,所以我安装了Linux Bash Shell.当我运行此命令时:
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
我得到: docker:无法通过unix:///var/run/docker.sock连接到Docker守护程序.docker守护程序正在运行吗?
.而当我运行
$ systemctl status docker
我知道
System has not been booted with systemd as init system (PID 1). Can't operate
推荐答案
您似乎将无法在Windows 10 family
中使用docker,因为docker Desktop需要特定的Windows版本,如官方文档.
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.
系统要求
Windows 10 64位:专业版,企业版或教育版(内部版本15063或更高版本).
Windows 10 64-bit: Pro, Enterprise, or Education (Build 15063 or later).
您可以尝试的是在Windows主机上运行基于Linux的虚拟机,然后在其中运行docker.但是即使成功,您也将失去docker在资源消耗方面的所有优势.
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.
这篇关于docker:无法通过unix:///var/run/docker.sock连接到Docker守护程序.泊坞窗守护程序正在运行吗?Windows 10上的Linux Bash Shell的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!