Browse Source

Merge pull request #1284 from infosiftr/wp-cli-user

Add a note about WP-CLI's "USER"
yosifkit 7 years ago
parent
commit
283e46371c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      wordpress/content.md

+ 2 - 0
wordpress/content.md

@@ -67,3 +67,5 @@ The following Docker Hub features can help with the task of keeping your depende
 ## Running as an arbitrary user
 
 See [the "Running as an arbitrary user" section of the `php` image documentation](https://hub.docker.com/_/php/).
+
+When running WP-CLI via the `cli` variants of this image, it is important to note that they're based on Alpine, and have a default `USER` of Alpine's `www-data`, whose UID is `82` (compared to the Debian-based WordPress variants whose default effective UID is `33`), so when running `%%IMAGE%%:cli` against an existing Debian-based WordPress install, something like `--user 33:33` is likely going to be necessary. See [docker-library/wordpress#256](https://github.com/docker-library/wordpress/issues/256) for more discussion around this.