title: write in shared volumes docker
body: <p>I have a docker with a php application on it</p>
  
  <p>I have a share volume, for example</p>
  
  <pre><code>/home/me/dev/site &lt;=&gt; /var/www/site
  </code></pre>
  
  <p>I can write something in my host, it will be sync with the container</p>
  
  <p>if I launch</p>
  
  <pre><code>sudo docker exec test touch /var/www/site/test.txt
  </code></pre>
  
  <p>It works </p>
  
  <p>But if my server is trying to create a file as <code>www-data</code> this is not working because of the rights.</p>
  
  <p>Is there a way to give access to my shared volumes to <code>www-data</code> ?</p>
  
  <p>I am using boot2docker</p>