title: Mounting a directory located on an alternate host computer volume. Possible? (Docker)
body: <p>Problem:  I want to mount a directory to my docker container, but its located on another hard drive.For example:  </p>
  
  <blockquote>
    <p>/Volumes/alternateDrive/files!</p>
  </blockquote>
  
  <p>A better explanation below:</p>
  
  <p>Lets take the following scenario:
  (I'm using OSX and Boot2Docker)</p>
  
  <p>Say I have a directory of files located at:  </p>
  
  <blockquote>
    <p>/Volumes/SomeHardDrive/project/ ... files!</p>
  </blockquote>
  
  <p>I would like to mount this directory in a docker container as follows:</p>
  
  <pre><code>docker run -it --name data_volume -v /Volumes/SomeHardDrive/project:/files ubuntu /bin/bash
  </code></pre>
  
  <p>I will then be dropped into a bash shell where i can run the following command:  </p>
  
  <pre><code>ls -lah /files
  </code></pre>
  
  <p>No joy.  </p>
  
  <p>However, this works just dandy:</p>
  
  <pre><code>docker run -it --name data_volume -v ~/test_dir_of_files:/files ubuntu /bin/bash
  </code></pre>
  
  <p>Thoughts?</p>