title: How to copy files from docker container to host using docker-compose in docker-machine
body: <p>I have reports generated in gradle container for my selenium tests, I am trying to copy the files from docker container to local host. As a work around, I have used docker cp to copy files from container to my local and it works. How to achieve it with docker-compose volumes. </p>
  
  <p>Below is my <em>docker-compose.yml</em></p>
  
  <pre><code>version: "3 "
  services:
    selenium-hub:
      image: selenium/hub
      container_name: selenium-hub_compose
      ports:
        - "4444:4444"
    chrome:
      image: selenium/node-chrome-debug
      container_name: selenium-chrome
      depends_on:
        - selenium-hub
      ports:
        - "5900"
      environment:
        - http_proxy=http://x.x.x.x:83
        - https_proxy=http://x.x.x.x:83
        - HUB_HOST=selenium-hub
        - HUB_PORT=4444
    gradle:
     image: gradle:jdk8
     container_name: selenium-gradle
     build:
        context: .
        dockerfile: dockerfile
  </code></pre>
  
  <p>I run the command <code>docker-compose up</code> -> it runs the selenium tests and generates the report in the container.</p>
  
  <p>Can anyone help on this?</p>