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

docker本身已安装正常,当执行docker images命令时,出现:

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

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

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

Redirecting to /bin/systemctl start docker.service

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章