From 214a16a96432d766fbc2a84b8ea6a19ce27845d6 Mon Sep 17 00:00:00 2001 From: Daniele Di Carlo <54141854+dadicarlo@users.noreply.github.com> Date: Mon, 26 Jan 2026 16:47:38 +0100 Subject: [PATCH 1/2] Remove symlink for PostgreSQL data directory in Alpine images --- 18/alpine3.22/Dockerfile | 1 - 18/alpine3.23/Dockerfile | 1 - 2 files changed, 2 deletions(-) diff --git a/18/alpine3.22/Dockerfile b/18/alpine3.22/Dockerfile index dbfd50a247..78c8c5b2f5 100644 --- a/18/alpine3.22/Dockerfile +++ b/18/alpine3.22/Dockerfile @@ -198,7 +198,6 @@ RUN install --verbose --directory --owner postgres --group postgres --mode 3777 # NOTE: in 18+, PGDATA has changed to match the pg_ctlcluster standard directory structure, and the VOLUME has moved from /var/lib/postgresql/data to /var/lib/postgresql # ENV PGDATA /var/lib/postgresql/18/docker -RUN ln -svT . /var/lib/postgresql/data # https://github.com/docker-library/postgres/pull/1259#issuecomment-2215477494 VOLUME /var/lib/postgresql # ("/var/lib/postgresql" is already pre-created with suitably usable permissions above) diff --git a/18/alpine3.23/Dockerfile b/18/alpine3.23/Dockerfile index 47a31f6a20..6a8d944015 100644 --- a/18/alpine3.23/Dockerfile +++ b/18/alpine3.23/Dockerfile @@ -198,7 +198,6 @@ RUN install --verbose --directory --owner postgres --group postgres --mode 3777 # NOTE: in 18+, PGDATA has changed to match the pg_ctlcluster standard directory structure, and the VOLUME has moved from /var/lib/postgresql/data to /var/lib/postgresql # ENV PGDATA /var/lib/postgresql/18/docker -RUN ln -svT . /var/lib/postgresql/data # https://github.com/docker-library/postgres/pull/1259#issuecomment-2215477494 VOLUME /var/lib/postgresql # ("/var/lib/postgresql" is already pre-created with suitably usable permissions above) From 9ba4f2e299f8962c87a7ec3e9f85bdb9cd4bfa89 Mon Sep 17 00:00:00 2001 From: Daniele Di Carlo <54141854+dadicarlo@users.noreply.github.com> Date: Thu, 29 Jan 2026 09:53:56 +0100 Subject: [PATCH 2/2] Remove symbolic link for PGDATA in Dockerfile Removed symbolic link creation for PGDATA in Dockerfile. --- Dockerfile-alpine.template | 1 - 1 file changed, 1 deletion(-) diff --git a/Dockerfile-alpine.template b/Dockerfile-alpine.template index ad6e1632d6..1f9ffd7592 100644 --- a/Dockerfile-alpine.template +++ b/Dockerfile-alpine.template @@ -221,7 +221,6 @@ RUN install --verbose --directory --owner postgres --group postgres --mode 3777 # NOTE: in 18+, PGDATA has changed to match the pg_ctlcluster standard directory structure, and the VOLUME has moved from /var/lib/postgresql/data to /var/lib/postgresql # ENV PGDATA /var/lib/postgresql/{{ .major | tostring }}/docker -RUN ln -svT . /var/lib/postgresql/data # https://github.com/docker-library/postgres/pull/1259#issuecomment-2215477494 VOLUME /var/lib/postgresql # ("/var/lib/postgresql" is already pre-created with suitably usable permissions above) {{ ) else ( -}}