You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The image forces PGDATA to be the default location: /var/lib/postgresql/data and fail it is overriden.
If the user defines PGDATA to another location, it is ignored and the container will fail starting.
Here is an output with PGDATA=/var/lib/postgresql/data/pgdata (NOTE the extra non standard /pgdata at the end):
2025-05-27 09:00:49.140 UTC [1] FATAL: "/var/lib/postgresql/data" is not a valid data directory
Bug report
Describe the bug
The image forces
PGDATA
to be the default location:/var/lib/postgresql/data
and fail it is overriden.If the user defines
PGDATA
to another location, it is ignored and the container will fail starting.Here is an output with
PGDATA=/var/lib/postgresql/data/pgdata
(NOTE the extra non standard/pgdata
at the end):To Reproduce
You can test using docker and:
It will fail mentioning:
which should not be relevant since we want to use
/data
.Expected behavior
The user can point to a custom PGDATA and the container starts.
Using the original postgres image works fine:
System information
but the issue is not specific to this version.
The text was updated successfully, but these errors were encountered: