title: Docker : Dynamically created file copy to local machine
body: <p>I am new to docker, I'm dynamically creating a file which is in docker container and want to copy that local machine at the same time, please let me know how it is possible through volumes.</p>
  <p>For now, I have to use the below command again and again to check the file data :</p>
  <pre><code>docker cp source destination
  </code></pre>
  <p>How it can be done through volumes, the file format will be in .csv or .xlsx? I mean what should I write the command in docker files so that it can copy the file</p>