Docker volume located in /tmp on OSX empty
<p>When I try to run a container on OSX (with docker-machine on a Parallels VM) and mount a volume located in <code>/tmp</code> the volume seems empty.</p>

<pre><code>&gt; mkdir -p /tmp/foo/bar
&gt; docker run -ti -v /tmp/foo:/foo ubuntu ls /foo
</code></pre>

<p>I expect to see it list <code>bar</code>, however, it's empty. This works:</p>

<pre><code>&gt; mkdir -p /Users/myuser/tmp/foo/bar
&gt; docker run -ti -v /Users/myuser/tmp/foo:/foo ubuntu ls /foo
bar
</code></pre>

<p>The same happens with folders created with <code>mktemp</code> which end up in <code>/folders</code>. How can I make docker mount those folders correctly?</p>