title: Docker permissions host user volume in the container
body: <p>I'm looking for a "clean" solution to share a volume and share the permissions. I mean, if it's possible, I would like to have the same user in my container than the local user who has started it. </p>
  
  <p>Currently, I'm using:</p>
  
  <pre><code>docker run --rm -v ~/Projects/:/projects/ mycontainer
  </code></pre>
  
  <p>It works but the problem is, when my container writes some content in this volume, it's root who is the proprietary and not my local user. </p>
  
  <p>What is the best way to handle this issue? If it's possible, I don't want to create user information in the Dockerfile, because I want to share this container with colleagues and I want to avoid any permissions issue between the local user and the container user.</p>
  
  <p>Thanks </p>