How mount subdirectory in mounted directory in Docker?
<p>I'm using this docker-compose file:</p>

<pre><code>version: '2'

services:
    php:
        container_name: "php"
        build: ./php
        volumes:
           - ./../php:/var/www
           - ./../core:/var/www/core
</code></pre>

<p><code>./../php</code> - does not have core dir. After starting everything is ok. But after 5 seconds <code>/var/www/core</code> is empty and I see empty core directory inside <code>./../php/core</code>.</p>

<p>I think container reload this empty directory(<code>./../php/core</code>) from host and ignores second volume binding(<code>./../core:/var/www/core</code>)</p>

<p>How use correctly?</p>