title: I can not access to mount directory from Django when using docker
body: <p>I run Django in docker and I want to read a file from host. I mount a path in host to container using following command in my docker-compose file:</p>
  <pre><code>volumes:     
        - /path/on/host/sharedV:/var/www/project/src/shV
  </code></pre>
  <p>Then I execute mongodump and export a collection into sharedV on host. After that, I inspect web container and go to the <strong>shV</strong> directory in container and I can see the backup file. However,  when I run <code>os.listdir(path)</code> in django, the result is empty list. In the other word, I can access to <strong>sharedV</strong> directory in Django but I can not see its contents!
  Here is the Mount part of container inspect:</p>
  <pre><code>&quot;Mounts&quot;: [           
              {
                  &quot;Type&quot;: &quot;bind&quot;,
                  &quot;Source&quot;: &quot;/path/on/host/sharedV&quot;,
                  &quot;Destination&quot;: &quot;/var/www/project/src/shV&quot;,
                  &quot;Mode&quot;: &quot;rw&quot;,
                  &quot;RW&quot;: true,
                  &quot;Propagation&quot;: &quot;rprivate&quot;
              }
          ]
  </code></pre>
  <p>Is there any idea that how can I access to host from a running container?</p>
  <p>thanks</p>