Re: postgres and initdb not working inside docker - Mailing list pgsql-hackers

From Tom Lane
Subject Re: postgres and initdb not working inside docker
Date
Msg-id 2371774.1653586183@sss.pgh.pa.us
Whole thread Raw
In response to postgres and initdb not working inside docker  (Roffild <roffild@hotmail.com>)
Responses Re: postgres and initdb not working inside docker  (Roffild <roffild@hotmail.com>)
List 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



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: doc: CREATE FOREIGN TABLE .. PARTITION OF .. DEFAULT
Next
From: Greg Hennessy
Date:
Subject: selectivity function