-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
www-data user mismatch cli / wordpress images #256
Comments
Basically the same problem explained in a slightly different way, but in great detail, in #279. That issue is now closed as a duplicate, but perhaps still worth reviewing. |
There shouldn't be anything preventing running the I'd love to get the IDs to match up, but that's not a great solution since in both instances, the |
Hello there!! My current solution was, create a custom @tianon This can be a official solution? Or installing |
I would love to see a clean solution to this, but as I stated above, I really don't see any way we can cleanly resolve this (especially in a way that doesn't break existing users). Both images should allow either using |
…ary user This is adapated from what's discussed in docker-library/wordpress#249 (and docker-library/wordpress#256, among others).
…hp7.2-apache versionpress/wordpress:php7.2-apache is based on wordpress:php7.2-apache which is based on debian. On Debian, www-data:www-data is 33:33 On Alpine (which is what cli is based on), www-data:www-data is 82:82 Therefore, when Alpine and Debian interact, one has to change to match the other. See docker-library/wordpress#256 for details
…hp7.2-apache versionpress/wordpress:php7.2-apache is based on wordpress:php7.2-apache which is based on debian. On Debian, www-data:www-data is 33:33 On Alpine (which is what cli is based on), www-data:www-data is 82:82 Therefore, when Alpine and Debian interact, one has to change to match the other. See docker-library/wordpress#256 for details
…hp7.2-apache versionpress/wordpress:php7.2-apache is based on wordpress:php7.2-apache which is based on debian. On Debian, www-data:www-data is 33:33 On Alpine (which is what cli is based on), www-data:www-data is 82:82 Therefore, when Alpine and Debian interact, one has to change to match the other. See docker-library/wordpress#256 for details
…hp7.2-apache versionpress/wordpress:php7.2-apache is based on wordpress:php7.2-apache which is based on debian. On Debian, www-data:www-data is 33:33 On Alpine (which is what cli is based on), www-data:www-data is 82:82 Therefore, when Alpine and Debian interact, one has to change to match the other. See docker-library/wordpress#256 for details
The www-data user in wordpress:cli has a different UID (82) to the www-data user in wordpress (33). Ensure we use the wordpress www-data user for CLI commands. See docker-library/wordpress#256 for more discussion.
The www-data user in wordpress:cli has a different UID (82) to the www-data user in wordpress (33). Ensure we use the wordpress www-data user for CLI commands. See docker-library/wordpress#256 for more discussion.
The www-data user in wordpress:cli has a different UID (82) to the www-data user in wordpress (33). Ensure we use the wordpress www-data user for CLI commands. See docker-library/wordpress#256 for more discussion.
The www-data user in wordpress:cli has a different UID (82) to the www-data user in wordpress (33). Ensure we use the wordpress www-data user for CLI commands. See docker-library/wordpress#256 for more discussion.
I am deploying some Wordpress instances, each is a network of sites.
The wp-cli image is based on alpine, only. the Apache image is based on Debian, only. the FPM uses both Debian and alpine, but that requires another HTTP container or configuring FCGI in the LB instead of a simple proxy.
When using the wp-cli on a volume from an Apache image, you can't save the changes into the wp-config.php file, because the www-data user has different uids on alpine and debian.
So I suggest to implement the following (I thing the first is the simplest):
docker-compose exec wordpress multisite-install ...
will be more efficient than having a separate service for the cli.Here is my current (initial) setup: https://github.com/uda/docker-wp-ms
The text was updated successfully, but these errors were encountered: