The container fails to run any command given with docker run (for any command other than the default postgres command):
$ docker run --rm pgautoupgrade/pgautoupgrade:18.4-debian ls
************************************
PostgreSQL data directory: /var/lib/postgresql/18/docker
************************************
/usr/local/bin/postgres-docker-entrypoint.sh: line 415: [: -eq: unary operator expected
/usr/local/bin/postgres-docker-entrypoint.sh: line 429: [: : integer expression expected
/usr/local/bin/postgres-docker-entrypoint.sh: line 432: [: : integer expression expected
/usr/local/bin/postgres-docker-entrypoint.sh: line 435: [: : integer expression expected
/usr/local/bin/postgres-docker-entrypoint.sh: line 438: [: : integer expression expected
/usr/local/bin/postgres-docker-entrypoint.sh: line 441: [: : integer expression expected
****************************************************************************
Unrecognised version of PostgreSQL database files found, aborting completely
****************************************************************************
It seems to mostly come from some variables not being set at all earlier in the script when the command is not postgres.
This issue prevents the container from being used as a full drop-in replacement for the regular postgres container.
The container fails to run any command given with
docker run(for any command other than the defaultpostgrescommand):It seems to mostly come from some variables not being set at all earlier in the script when the command is not
postgres.This issue prevents the container from being used as a full drop-in replacement for the regular postgres container.