【已解决】Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon runnin

执行docker ps命令,出现

“Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?”

错误

此时已确定Docker本身已经安装正常。

问题原因是因为docker服务没有启动,所以在相应的/var/run/ 路径下找不到docker的进程。

执行 service docker start 命令,启动docker服务,返回

docker start/running, process 2662

此时进程启动成功,再执行docker ps,问题解决

你可能感兴趣的:(Docker,docker,eureka,java)