本文主要是介绍(2020.3.18已解决)Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker dae,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
-
docker run hello-world
运行
docker run hello-world
出现如下错误:Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
sudo systemctl start docker
结果出现如下错误:
System has not been booted with systemd as init system (PID 1). Can't operate.
此处给出解决方案:
sudo /etc/init.d/docker start
因为在
WSL 2
中没有systemd
运行上述命令,出现
\* Starting Docker: docker
这篇关于(2020.3.18已解决)Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker dae的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!