title: Can't add write permission to docker volume in docker-compose
body: <h1>Issue</h1>
  
  <p>My main goal is to create a wordpress container on my linux machine for development on that container.</p>
  
  <p>Therefore, I'm creating new volumes for the <code>plugins</code> and <code>themes</code> folders and even add <code>read &amp; write</code> permissions, with the <code>:rw</code> option.</p>
  
  <p>However, when I'm trying to create a new directory or file in those "volumes", <strong>I get an error message (especially in VS Code), that tells that I don't have the permission to add these volumes.</strong></p>
  
  <p>Moreover, the permissions based on the <code>ll</code> command shows that the owner is the only one with the <code>w</code> permissions. It means that I cannot use the group <code>www-data</code> and add it to my user in order to edit those volumes.</p>
  
  <p>When I'm trying to run <code>chmod 766 themes plugins</code>, the volumes are not bind anymore, so this solution doesn't work.</p>
  
  <p>I've searched the whole web (including stack overflow), but none of the answers didn't work for me, so I'm lost :(</p>
  
  <p>Here are some details that can help you with finding solution, including the <code>docker-compose.yml</code> file.</p>
  
  <h1>Details</h1>
  
  <h2>Error on VS Code when trying to add a directory named <code>hello</code></h2>
  
  <pre><code>A system error occurred (EACCES: permission denied, mkdir '~/Workspace/WordpressProject/themes/hello')
  </code></pre>
  
  <h2>Run <code>mkdir hello</code> in terminal, returns this error</h2>
  
  <p><code>mkdir: cannot create directory ‘hello’: Permission denied</code></p>
  
  <h2><code>ll</code> command result for volumes</h2>
  
  <pre><code>drwxr-xr-x 2 www-data www-data 4096 Jun 14 23:54 plugins/
  drwxr-xr-x 5 www-data www-data 4096 May 17 22:00 themes/
  </code></pre>
  
  <h2>docker-compose.yml</h2>
  
  <pre class="lang-yaml prettyprint-override"><code>version: '3'
  services:
    wordpress:
      image: wordpress
      links:
        - mariadb:mysql
      environment:
        - WORDPRESS_DB_PASSWORD=${Database Name}
      ports:
        - "127.0.0.101:80:80"
      hostname: ${Wordpress Host}
      volumes:
        - ./plugins:/var/www/html/wp-content/plugins:rw
        - ./themes:/var/www/html/wp-content/themes:rw
      restart: always
    mariadb:
      image: mariadb
      environment:
        - MYSQL_ROOT_PASSWORD=${Password}
        - MYSQL_DATABASE=${Database Name}
      volumes:
        - ./database:/var/lib/mysql
      restart: always
  </code></pre>
  
  <h2>Versions</h2>
  
  <ul>
  <li><strong>OS:</strong> Ubuntu 18.04 LTS</li>
  <li><strong>Docker:</strong> v18.05.0-ce, API v1.37</li>
  <li><strong>Editor (Visual Studio Code):</strong> v1.23.1</li>
  </ul>