title: Get information about the volume from inside the docker container
body: <p>Inside a container I build a (C++) app. The source code directory is shared with <code>--volume</code>.
  If docker runs on Linux, the shared directory runs at full speed, but if docker runs on mac, docker has to bridge the share which results in speed drop. Therefore I have to copy the whole source directory to the container before starting compiling. But this copy step is necessary on non-Linux hosts only.</p>
  <p>How can I detect if the share is &quot;natively&quot; shared?</p>
  <p>Can I get information about the host os from inside the container?</p>
  <p><strong>Update</strong></p>
  <p>The idea behind this workflow is to setup an image for a defined environment to cross-build the product for multiple platforms (win, mac, linux). Otherwise each developer has a different Linux OS/compilers/components etc installed.</p>
  <p>As a docker newbie I thought that this image (with all required 3rdParty components/compilers) can be used to build the app within a container when it is launched.</p>