有时候,在执行docker命令时,会有如下异常。
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
这是由于docker的daemon没有启动导致的,我们只需要执行
service docker start
即可启动守护进程。
返回Redirecting to /bin/systemctl start docker.service,问题解决。