From 10ba46a559b0f8853660739ea03ed1f99d144226 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Mon, 13 Aug 2018 15:57:22 -0700 Subject: [PATCH] Add a note about WP-CLI's "USER" --- wordpress/content.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wordpress/content.md b/wordpress/content.md index 63d8d07e9..9f731358e 100644 --- a/wordpress/content.md +++ b/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.