title: how to create a docker image/container with same file rights as host user
body: <p>When start a docker container as user with name 'username1' in group 'usergroup1'.</p>
  
  <p>And that container has files/folders on the local file system with volume:
  eg.</p>
  
  <pre><code>$username1&gt;docker run -v /homes/username1/output:output outputter
  </code></pre>
  
  <p>The files are created with root as owner.</p>
  
  <p>What do i need to do in the Dockerfile or startup options to make sure the file rigths in the output folder are the same as the localuser:group, in this case username1:usergroup1?</p>