title: How to access shared volumes on Docker for Mac
body: <p>I've reviewed the documentation here:</p>
  
  <p><a href="https://docs.docker.com/docker-for-mac/install/#install-and-run-docker-for-mac" rel="nofollow noreferrer">https://docs.docker.com/docker-for-mac/install/#install-and-run-docker-for-mac</a></p>
  
  <p>It doesn't say anything about <code>boot2docker</code>, although some other questions along these lines talk about this:</p>
  
  <p><a href="https://stackoverflow.com/questions/26348353/mount-volume-to-docker-image-on-osx/26386279#26386279">Mount volume to Docker image on OSX</a></p>
  
  <p>So the question is – the <code>Docker for Mac</code> application provides File Sharing via <code>Preferences -&gt; File Sharing</code>; <em>how does one make use of these shared folders from the docker image</em> (for example if one ssh's into the docker image)? When I say how, I don't mean "what are the use-cases", I mean "please show me an example of how to access a shared folder from the command line of the running container".</p>
  
  <p>Ideally I'm trying to create a similar scenario to Vagrant's synched folders whereby I can edit files on my Host env, independently of the Docker Image but these are updated automatically to the Docker image on save.</p>
  
  <h2>UPDATE:</h2>
  
  <p>To be clear, the reason for asking this question is because I couldn't get the <code>-v</code> docker command to work. E.g. </p>
  
  <p><code>docker run -v /Users/geoidesic/Documents/projects/arc/mysite/djangocms_demo:/home/djangocms/djangocms/djangocms_demo -d -p 8001:8000 --name test_shared_volumes bluszcz/djangocms</code></p>
  
  <p>With the above command the container immediately stops, so if I run <code>docker ps</code> the list of running containers is empty.</p>
  
  <p>However, if I run the container without the <code>-v</code> command, then it stays running as expected:</p>
  
  <pre><code>docker run -d -p 8001:8000 --name test_shared_volumes bluszcz/djangocms
  </code></pre>