Can anyone explain docker.sock
<p>I am trying to understand the actual reason for mounting <code>docker.sock</code> in <code>docker-compose.yml</code> file.  Is it for auto-discovery?</p>

<pre><code>volumes:
  - /var/run/docker.sock:/var/run/docker.sock
</code></pre>