
最近在 Windows 子系统 WSL 上面安装了一个 ubuntu18.04, 安装完docker 跑 hello-world 的时候报错了
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
报错信息就是说: unix无法连接服务 你的服务确定正在运行吗?
- 启动 docker 服务
sudo service docker start
- 之后再去跑 sudo docker run hello-world , 问题解决