title: Mounting a directory to docker container
body: <p>I am trying to mount a host directory to my nginx docker container. However, it's not mounting what I would expect.</p>
  
  <p><strong>docker-compose.yml:</strong></p>
  
  <pre><code>nginx:
    image: nginx
    volumes:
      - ./app:/root/testfolder
  </code></pre>
  
  <p>Here's the contents of the directory in the container:</p>
  
  <pre><code>root@846e68e6e8b5:/# ls root/testfolder/
  50x.html  index.html
  </code></pre>
  
  <p>And the directories on my host:</p>
  
  <pre><code>bash-3.2$ ls
  app         bower.json      docker-compose.yml  gulpfile.js     node_modules        package.json
  bash-3.2$ ls app/
  app.js          assets      bower_components        common      index.html      modules
  bash-3.2$ 
  </code></pre>
  
  <p>This is the current versions I am running:</p>
  
  <pre><code>OSX 10.10.5
  Docker version 1.10.0, build 590d5108
  docker-compose version 1.6.0, build d99cad6
  docker-machine version 0.6.0, build e27fb87
  </code></pre>
  
  <p>I'd expect the host directory <code>./app</code> to be mounted in <code>root/testfolder</code>. Why is this not the case?</p>