Docker Community Forums

Share and learn in the Docker community.

Unable to update plugins or upload files to media in wordpress

Hello,
I am using Docker for Windows v18.09.0. I should mention that I did not encounter the issue I’m about to describe in a previous version of Docker for Windows (earlier release available in 2018).

I install wordpress with docker-compose. I use Linux containers. Once the containers are up and running and I am logged into to wordpress, I find that I cannot update or install plugins or update files to Media.
When I try to upload a file to Media, I get the following error:
Unable to create directory wp-content/uploads/2019/02. Is its parent directory writable by the server?
When I try to update or install a plugin, I get a popup window asking for FTP credentials with the following text:
To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Some research led me to a number of somewhat similar reports like: https://github.com/docker-library/wordpress/issues/358

Indeed, when I look at permissions for the wp-content folder in the wordpress container, it is set to user/group “root root” whereas all the other folders are set to “www-data www-data”. Permission are “drwxr-xr-x”
I don’t know what this was set to in the earlier version of docker that did not have this problem.

My questions:
1- Can anybody else reproduce this?
2- What is causing the issue? How do I solve this?
3- Is this problem also in Docker for Windows v18.09.2 (the latest stable release Docker Community Edition 2.0.02 2019-02-15)?
4- Has it got to do with a version of wordpress, rather than docker?

Thanks.