Replies: 5 comments
-
The entrypoint just copies wordpress/latest/php8.0/apache/docker-entrypoint.sh Lines 38 to 42 in 1d90641 For the Debian variant you'll want to grant permissions on the volume you're mounting for UID 33 (www-data in the container), if you're using Alpine then UID 82 You could also try asking over at the Docker Community Forums, Docker Community Slack, or Stack Overflow. Since these repos aren't really a user-help forum |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot for you reply, still dont have a clue how to do this! And probably this is very easy but I still dont understand to do this. Will appriciate if you provided with a simple Dockerfile on how to do this but understand if you dont want/have time. Btw I asked Docker Slack and Kubernetes Slack without any help :( |
Beta Was this translation helpful? Give feedback.
-
@oxodesign |
Beta Was this translation helpful? Give feedback.
-
I'm having the same issues ! But still not working on Kubernetes |
Beta Was this translation helpful? Give feedback.
-
The entrypoint will only copy So if you have configured kubernetes (or even just a basic If you are setting a specific uid/gid for the container to run as (like kubernetes' NOTE: I think you want something like this but again, this setup assumes that you will manage WordPress and theme/plugin updates via the WP admin UI. # be specific about WP version, php version, and apache (or fpm or fpm-alpine)
FROM wordpress:5.7-php8.0-apache
# should double check that these commands put your files/folders where you expected
# and that they have the correct permissions
# ie, "docker run -it --rm my-custom-wp bash" and have a look around
COPY upload.ini /usr/local/etc/php/conf.d/upload.ini
COPY custom-theme /usr/src/wordpress/wp-content/themes/ |
Beta Was this translation helpful? Give feedback.
-
Hi everyone,
I got things running correctly and as I want using Docker Compose but when it comes to our test server (Kubernetes) im having issues with permission on
/var/www/html
folder.I tried copying things to
/usr/src/wordpress
but it looks like this only works on first install! Changes that has been done on the theme are not being updated.So can someone explain (as for dummies, step by step) how to get this up and running, my docker using Dockerfile?
My Dockerfile looks like this (very minimal):
All help is appreciated
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions