【docker】MAC Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
问题描述:
1. 在电脑上打开终端,输入 docker ps, 提示信息如下:
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
2. 接着我输入 docker version, 提示信息如下:
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Client:
Cloud integration: v1.0.25
Version: 20.10.16
API version: 1.41
Go version: go1.17.10
Git commit: aa7e414
Built: Thu May 12 09:20:34 2022
OS/Arch: darwin/amd64
Context: default
Experimental: true
只有客户端信息,没有服务器端信息。
解决方法:
1. 我先是打开了docker desktop,运行之后结果还是一样。
2. 我关了docker desktop,重新启动,问题解决。

浙公网安备 33010602011771号