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
Fix
Looks like you generated the patch backwards, it's removing the lines you
propose to add.diff --git a/configure.ac b/configure.ac
index d093fb88dd..3f0077696b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -749,6 +749,14 @@ PGAC_ARG_BOOL(enable, cassert, no, [enable assertion
checks (for d
Add --disable-check-permissions to ./configure
After applying the patch, run "autoheader -f ; autoconf"
This patch fixes an issue inside Docker and will not affect other builds.diff --git a/configure.ac b/configure.ac
index 3f0077696b..d093fb88dd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -
Oops...
If it's a regular "data2" folder and there is no "read_only: true" flag
for the container:
$ mkdir /home/pgsql/data2/pgtest
$ chmod 700 /home/pgsql/data2/pgtest
$ ls -l /home/pgsql/data2
drwx--2 pgsql pgsql 4096 May 27 11:19 pgtest
Roff
postgres and initdb not working inside docker.
chmod 755 always for a mounted volume inside docker.
=
From: Roffild
Subject: fix chmod inside docker
diff --git a/src/backend/utils/init/miscinit.c
b/src/backend/utils/init/miscinit.c
index 30f0f19dd5..adf3218cf9 100644
--- a/src