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

问题:
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
分析:
无法在unix:///var/run/docker.sock上连接到Docker守护进程。docker守护进程正在运行吗?

很可能是docker并未启动,所以,先执行systemctl restart docker, 启动docker
果然, ok了
在这里插入图片描述
如果docker之前是ok的,很可能是没启动成功的问题;
如果第一次安装,那直接卸载重装吧

解决:
systemctl restart docker