Im running the official WordPress container for local development, and have it mapped to a local folder on my host machine. Everything runs fine except WordPress can’t write any files as it has no permissions as far as I can tell.
I’ve even tried adding 777 permissions to the uploads folder, it then creates the first folder but it goes to try adding another it fails again.
Apparently this is due to the way Apache runs. Im now running another container which runs ngnx and it runs fine.
It would be go to know if theres a way to do it nonetheless.
So I think apache run with an user (like www-data) which doesn’t have write right on your data folder (inside the container).
Maybe if you chown your data folder to apache user, it can then write on this folder.