Docker mac 错误消息无法连接到 Docker 端点

Docker on mac error message can't connect to Docker endpoint

我已经尝试过用于多对等网络的 vagrant devenv,它运行良好。现在我想在 mac 上做同样的事情,但我收到这样的错误消息

vp_1  | 07:21:42.489 [dockercontroller] deployImage -> ERRO 04c Error building images: cannot connect to Docker endpoint
vp_1  | 07:21:42.489 [dockercontroller] deployImage -> ERRO 04d Image Output:
vp_1  | ********************
vp_1  |
vp_1  | ********************
vp_1  | 07:21:42.553 [dockercontroller] Start -> ERRO 05b start-could not recreate container cannot connect to Docker endpoint
vp_1  | 07:21:42.553 [container] unlockContainer -> DEBU 05c container lock deleted(dev-jdoe-04233c6dd8364b9f0749882eb6d1b50992b942aa0a664182946f411ab46802a88574932ccd75f8c75e780036e363d52dd56ccadc2bfde95709fc39148d76f050)
vp_1  | 07:21:42.553 [chaincode] Launch -> ERRO 05d launchAndWaitForRegister failed Error starting container: cannot connect to Docker endpoint

下面是我的合成文件,

vp:
image: hyperledger/fabric-peer
ports:
- "5000:5000"
environment:
- CORE_PEER_ADDRESSAUTODETECT=true
- CORE_VM_ENDPOINT=http://127.0.0.1:2375
- CORE_LOGGING_LEVEL=DEBUG
command: peer node start

我试过将端点分配给 "unix:///var/run/docker.sock" 并且出现如下其他错误消息

vp_1  | 07:39:39.642 [dockercontroller] deployImage -> ERRO 045 Error building images: dial unix /var/run/docker.sock: connect: no such file or directory
vp_1  | 07:39:39.642 [dockercontroller] deployImage -> ERRO 046 Image Output:

CORE_VM_ENDPOINT 设置为 unix:///var/run/docker.sock 时,请确保 var/run/docker.sock 存在于您的主机中。如果它不存在,请安装它。

另外,参考下面的问题,