-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Issue with wp-content/uploads setting owner to 999 instead of www-data #246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I think you'll need to give us a bit more information about how you're running the image resulting from building this |
Hi @tianon thanks, just updated with the volume I'm currently using. It's pretty much a custom image adding a theme/plugins and running that on docker swarm as a container. |
Have you tried doing a |
I thought about changing the ownership, but doesn't seems to be the right approach for general usage. The current image downloads a wordpress project that doesn't come with a upload folder. For me, the right approach would be creating a upload folder on this docker image with the right user so any general user would not have issues with that anyway.
|
The reason we don't do anything special with |
Hey @tianon that explains a lot when you talk about the "whole mutable state", that makes sense for me now. Thanks for you time o/ |
My issue is that I can't edit any files inside wp-content on Ubuntu and if I changed permissions to the wp-content than adding plugins or changing themes gives me some ftp access credentials popup window. Hope this makes sense. |
@reachdevelopers if you need to modify for development purposes, I'd recommend using If that doesn't work, try doing $ docker run ... -v /etc/passwd:/etc/passwd:ro -v /etc/group:/etc/group:ro -e APACHE_RUN_USER=reachdevelopers -e APACHE_RUN_GROUP=reachdevelopers ... wordpress ... |
sorry, I am new at docker and I run docker docker-compose up where do I use --user? Can you porvide me with an example? |
Hello, @tianon, hope you can help my issue - same as @reachdevelopers : no possible to install any plugin to Wordpress (apparently change content of |
Dockerfile
Causing an issue on file uploading:
Tested on Docker for mac and ubuntu versions
Local volume:
/var/www/html/wp-content/uploads
The text was updated successfully, but these errors were encountered: