title: Copying file from docker container to host using docker compose
body: <p>I am trying to mount a volume from my host machine to docker using docker-compose but not getting my file copied over from docker-container.
  This is what i have.</p>
  
  <pre><code>volumes:
    - /tests/testResultsReport:/tests/testResultsReport
  </code></pre>
  
  <p>I have a file that is generated inside testResultsReport folder every time I run my tests and want my file to be copied over from docker container to my host.</p>
  
  <p>I think I am missing something in understanding how it works so needs a little help.</p>
  
  <p>I already checked that path /tests/testResultsReport exists in host.</p>