title: How to export a named docker volume on a Mac?
body: <p>I have a docker named volume called "app_data". I simply want to export this volume so that I can move it to a different host machine.</p>
  
  <p>After some reading, I understand there're 2 ways of doing this.</p>
  
  <ol>
  <li>Retrieve the volume file from host file system as discovered by the command <code>docker volume inspect app_data</code></li>
  <li>Create a TAR ball export from docker volume using a command close to
  <code>docker run --rm --volumes-from database -v $(pwd):/backup debian:jessie tar cvf /backup/backup.tar /app_data</code></li>
  </ol>
  
  <p>However, I cannot get either one of these options to work for me.</p>
  
  <ol>
  <li>Option 1 is not working for me as I am running this on a Mac and what <code>docker volume inspect app_data</code> gives me is the path of the VM file system. Is there a way to access this file from VM to my Mac?</li>
  <li>Option 2 is not working as it fails saying <code>tar: Removing leading '/' from member names
  tar: /app_data: Cannot stat: No such file or directory</code>
  Am i using this command correctly? </li>
  </ol>
  
  <p>I am looking for the minimal set of commands to get this job done.
  Appreciate your help. Thanks!</p>