title: Mounts denied. The paths ... are not shared from OS X and are not known to Docker
body: <p>The command <code>docker run -v /var/folders/zz/...</code> produces the following error.</p>
  
  <pre><code>docker: Error response from daemon: Mounts denied: 
  The paths /var/folders/zz/... and /var/folders/zz/...
  are not shared from OS X and are not known to Docker.
  You can configure shared paths from Docker -&gt; Preferences... -&gt; File Sharing.
  </code></pre>
  
  <p>When I do open File Sharing, I see that /private is listed already.</p>
  
  <p>If I attempt to add <code>/var/folder/</code>, it resolves to <code>/private/var/folders</code>, which is a subset of /private and hence the addition is rejected. </p>
  
  <p>To summarize, it looks to me like the directory <code>/var/folders/..</code> is shared by OS X as a subdirectory of <code>/private</code> and hence must be known to Docker. Any help on resolving this would be appreciated.</p>
  
  <p>As an experiment, I replaced the <code>/private</code> in File Sharing with <code>/private/var/folders</code> and restarted the docker but the result did not change. </p>
  
  <p>Just for a more complete reference, this is the <a href="https://github.com/tensorflow/cleverhans/blob/master/examples/nips17_adversarial_competition/run_attacks_and_defenses.sh" rel="noreferrer">.sh script</a>, which runs <a href="https://github.com/tensorflow/cleverhans/blob/master/examples/nips17_adversarial_competition/run_attacks_and_defenses.py" rel="noreferrer">this python script</a>, which in turn runs the docker command. </p>