报错内容:
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
故障描述
自己是在VMware上安装CentOS7,其上安装docker,正常使用一次后,重启第二次CentOS系统发现使用docker ps命令报错
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
刚刚开始学习不明白其原理
通过重启docker服务后可以使用(如未解决百度其他方法)
systemctl restart docker.service