Docker on mac error message can't connect to Docker endpoint
<p>I have tried the vagrant devenv for multi-peers network and it worked fine. now I am trying to do the same thing on mac, but I got such err message</p>

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

<p>Belowing is my compose file,</p>

<pre><code>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
</code></pre>

<p>I have tried assigning endpoint to 
"unix:///var/run/docker.sock" and it appear the other err message as belowing</p>

<pre><code>vp_1  | 07:39:39.642 [dockercontroller] deployImage -&gt; 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 -&gt; ERRO 046 Image Output:
</code></pre>