Skip to content

PostgreSQL backup tool with Point-In-Time-Recovery and restore verification

FIX (docker): Chown /var/run/postgresql after UID/GID adjustment to fix PostgreSQL lock file permission denied on startup

Rostislav Dugind1c41ed53abf
diff --git a/Dockerfile b/Dockerfile
index 1ad8c204..53fb42e3 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -312,6 +312,8 @@ if [ "\$CURRENT_UID" != "\$PUID" ]; then
usermod -o -u "\$PUID" postgres
fi
+chown -R postgres:postgres /var/run/postgresql
+
# PostgreSQL 17 binary paths
PG_BIN="/usr/lib/postgresql/17/bin"