Re: postgres and initdb not working inside docker
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Roffild <roffild@hotmail.com>
Cc: pgsql-hackers@postgresql.org
Date: 2022-05-26T17:29:43Z
Lists: pgsql-hackers
Roffild <roffild@hotmail.com> writes: > postgres and initdb not working inside docker. > chmod 755 always for a mounted volume inside docker. This patch will never be accepted. You don't need it if you take the standard advice[1] that the Postgres data directory should not itself be a mount point. Instead, make a subdirectory in the mounted volume, and that can have the ownership and permissions that the server expects. regards, tom lane [1] https://www.postgresql.org/message-id/12168.1312921709%40sss.pgh.pa.us