title: How to write data to host file system from Docker container
body: <p>I have a Docker container which is running some code and creating some HTML reports. I want these reports to be published into a specific directory on the host machine, i.e. at <code>/usr/share/nginx/reports</code></p>
  
  <p>The way I have gone about doing this is to mount this host directory as a data volume, i.e. <code>docker run -v /usr/share/nginx/reports --name my-container com.containers/my-container</code></p>
  
  <p>However, when I ssh into the host machine, and check the contents of the directory <code>/usr/share/nginx/reports</code>, I don't see any of the report data there.</p>
  
  <p>Am I doing something wrong?</p>
  
  <p>The host machine is an Ubuntu server, and the Docker container is also Ubuntu, no boot2docker weirdness going on here.</p>