Search code examples
dockerubuntuwindows-10

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


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

Solution

  • 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.