title: How can I mount a volume of files to a remote docker daemon?
body: <p>I have a Docker image <code>a</code> which does some logic on a given set of files. When running locally, I start <code>a</code> as following:</p>
  
  <pre><code>docker run -v /home/Bradson/data:/data a
  </code></pre>
  
  <p>This does its job.</p>
  
  <p>Now I want to run <code>a</code> on a remote Docker daemon:</p>
  
  <pre><code>DOCKER_HOST=tcp://remote_host:2375 docker run -v /home/Bradson/data:/data a
  </code></pre>
  
  <p>I am now getting the error that <code>/data</code> does not contain anything, most likely because <code>/home/Bradson/data</code> does not exist on the remote host.</p>
  
  <p>How do I approach this? Should I first <code>scp</code> <code>/home/Bradson/data</code> to some directory on the remote host and refer to that director in the <code>-v</code> option? Is there a pure Docker approach?</p>
  
  <p>Please note that I want to make <code>/home/Bradson/data</code> available at runtime, not during the build of <code>a</code>. Hence my usage of the <code>-v</code> option.</p>