windows10 ubuntu18.04子系统安装docker
安装过程网上都有就不一一讲了,在测试docker run hello-world时出错,显示:
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
See 'docker run --help'.
去百度该问题,大部分是让重启docker,但是并没有用,然后又systemctl daemon-reload命令,又出现
System has not been booted with systemd as init system (PID 1). Can't operate.
后来看到一篇帖子(https://blog.csdn.net/HOOKTTG/article/details/80626369),说win10子系统具有其特殊性,需要安装docker for windows,这个就是docker daemon.用来作为Docker的守护进程,作为Docker的服务端,ubuntu下作为客户端去访问这个守护进程.