title: How to share file from docker container to host
body: <p>I have a docker container which is running fine. It generates a few files in the directory <code>/Project/userfiles.txt</code>. I need these files for some testing purpose. But when this container is stopped everything is deleted. So I need to copy this file from the container to host.</p>
  
  <p>I have a python application running in the container which is generating the file. I want some command or any way through which I can send the <code>userfiles.txt</code> to host at the end when the container is stopped. </p>
  
  <p>To do this I can use <code>docker cp</code> command and I tried it but it gave me an error <code>docker not found</code> as docker is not installed.</p>
  
  <p><strong>How can I share files from container to host?</strong></p>