title: Wordpress docker - cannot install theme?
body: <p>I want to use wordpress docker image to develop my website locally. However when I try to install a theme fromui, or upload one, Wordpress wants some credentials to FTP. I've read how to solve this with <code>chown -R www-data.www-data /var/www/html</code> but it's not working at all and I still face the same issue</p>
  
  <p>Here is my DockerFile</p>
  
  <pre><code>FROM library/wordpress:latest
  
  RUN chown -Rf www-data.www-data /var/www/html/
  </code></pre>
  
  <p>Here is my docker-compose</p>
  
  <pre><code>version: '3.3'
  
  services:
     db:
       image: mysql:5.7
       volumes:
        - ./db_data:/var/lib/mysql
       restart: always
       environment:
         MYSQL_ROOT_PASSWORD: somewordpress
         MYSQL_DATABASE: wordpress
         MYSQL_USER: wordpress
         MYSQL_PASSWORD: wordpress
  
     wordpress:
       depends_on:
        - db
       image: my_docker
       ports:
        - "8000:80"
       restart: always
       volumes:
        - ./wp-content:/var/www/html/wp-content/
       environment:
         WORDPRESS_DB_HOST: db:3306
         WORDPRESS_DB_USER: wordpress
         WORDPRESS_DB_PASSWORD: wordpress
  </code></pre>
  
  <p>Could the reason be that I share a volume between my Windows host and docker image to persist changes on my website ?</p>