You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: currently wp-content is owned by root which prevents from uploading media because wp-content/uploads is not writible by www-data user inside the Wordpress container
Root cause: COPY command in Dockerfile and volumen setup (--volume) in docker run. Btw, why do we need both?
Description: currently wp-content is owned by root which prevents from uploading media because wp-content/uploads is not writible by www-data user inside the Wordpress container
Root cause: COPY command in Dockerfile and volumen setup (--volume) in docker run. Btw, why do we need both?
Fix hints:
https://stackoverflow.com/questions/28879364/docker-copy-and-change-owner
https://devops.stackexchange.com/questions/4540/how-to-change-the-owner-of-volume-directory-in-dockerfile
https://stackoverflow.com/questions/30052019/docker-creates-files-as-root-in-mounted-volume
https://stackoverflow.com/questions/44251019/wordpress-on-docker-could-not-create-directory-on-mounted-volume
moby/moby#3124
Workaround:
SSH into Wordpress container:
docker exec -it lahma-wp /bin/bash
Change ownership:
chown -R www-data:www-data wp-content/
The text was updated successfully, but these errors were encountered: