Re: postgres and initdb not working inside docker

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Roffild <roffild(at)hotmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: postgres and initdb not working inside docker
Date: 2022-05-26 17:29:43
Message-ID: 2371774.1653586183@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Roffild <roffild(at)hotmail(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Hennessy 2022-05-26 18:58:54 selectivity function
Previous Message Robert Haas 2022-05-26 16:57:55 Re: doc: CREATE FOREIGN TABLE .. PARTITION OF .. DEFAULT