title: Docker: Permissions for a mounted volume
body: <p>I have this image in which I mount a volume from the host</p>
  
  <pre><code>-v /Users/john/workspace:/data/workspace
  </code></pre>
  
  <p>Inside the container I'm using a user different than root. Now the problem is that it cannot create/modify files inside <code>/data/workspace</code> (permission denied). Now I solved it for now to do <code>chmod -R 777 workspace</code> on the host. What would be the docker way to solve this ?</p>