From d82913a35b77a7aa476d4ddbcc09d8140dc35bda Mon Sep 17 00:00:00 2001 From: desmap <43666255+desmap@users.noreply.github.com> Date: Fri, 13 Mar 2020 15:24:22 +0100 Subject: [PATCH] Update POSTGRES_USER description to clarify "ownership" message --- postgres/content.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/postgres/content.md b/postgres/content.md index 577483485..d747e0229 100644 --- a/postgres/content.md +++ b/postgres/content.md @@ -63,6 +63,8 @@ Note 2: This variable defines the superuser password in the PostgreSQL instance, This optional environment variable is used in conjunction with `POSTGRES_PASSWORD` to set a user and its password. This variable will create the specified user with superuser power and a database with the same name. If it is not specified, then the default user of `postgres` will be used. +Be aware that if this parameter is specified, PostgreSQL will still show `The files belonging to this database system will be owned by user "postgres"` during initialization. This refers to the Linux system user (from `/etc/passwd` in the image) that the `postgres` daemon runs as, and as such is unrelated to the `POSTGRES_USER` option. See the section titled "Arbitrary `--user` Notes" for more details. + ### `POSTGRES_DB` This optional environment variable can be used to define a different name for the default database that is created when the image is first started. If it is not specified, then the value of `POSTGRES_USER` will be used.