Roffild <roff...@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