title: Docker: forward container run environment, such as files, std IO, to local filesystem?
body: <p>You get some results in a docker run, such as a file, stdout or stderr. You want to forward them to your local file system or some other file system, such as cloud file system.</p>
  
  <p><em>Steps.</em></p>
  
  <ol>
  <li><p>You build a docker container such as wget as instructed <a href="https://stackoverflow.com/a/28885237/164148">here</a>.</p></li>
  <li><p>You run it: <code>docker run my-ubuntu wget http://google.com</code></p>
  
  <pre><code>2018-07-17 15:57:35 (57.9 MB/s) - 'index.html' saved [11657]
  </code></pre></li>
  </ol>
  
  <p><em>How can I access that <code>index.html</code> in my local file system? How can I forward stdout or stderr from the container to my own shell?</em></p>