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

From Roffild
Subject Re: postgres and initdb not working inside docker
Date
Msg-id DB9P193MB11772FB99B6704EA0E7F7ED2B3DB9@DB9P193MB1177.EURP193.PROD.OUTLOOK.COM
Whole thread Raw
In response to Re: postgres and initdb not working inside docker  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: postgres and initdb not working inside docker
Re: postgres and initdb not working inside docker
List pgsql-hackers
Docker is now the DevOps standard. It's easier to build an image for 
Docker and run the site with one command.

But the volume mount has a limitation with chmod 755. I don't want to 
write the database directly to the container.

The container is isolated from everything. Therefore, checking the file 
permissions inside the container is meaningless. And writing to the 
container is also a "security hole".

The world has changed! And the old standards don't work...

28.05.2022 18:49, Tom Lane:
> Lacks documentation, too.  But it doesn't matter, because we are not
> going to accept such a "feature".  The OP has offered no justification
> why this is necessary (and no, he's not the first who's ever used
> Postgres inside Docker).  Introducing a security hole that goes
> against twenty-five years of deliberate project policy is going to
> require a heck of a lot better-reasoned argument than "there's an
> issue inside Docker".



pgsql-hackers by date:

Previous
From: Daniel Gustafsson
Date:
Subject: Re: postgres and initdb not working inside docker
Next
From: "David G. Johnston"
Date:
Subject: Re: postgres and initdb not working inside docker