postgresql container fails to start and report error: popen failure: unable to allocate memory initdb: error: The program "postgres" is needed by initdb but was not found in the same directory as "/usr/lib/postgresql/14/bin/initdb". #534
When I use the file https://github.com/sameersbn/docker-redmine/blob/master/docker-compose-memcached.yml to start, the postgresql container fails to start and reports an error straight away:
Initializing database... popen failure: unable to allocate memory initdb: error: The program "postgres" is needed by initdb but was not found in the same directory as "/usr/lib/postgresql/14/bin/initdb". Check your installation.
When I use the file https://github.com/sameersbn/docker-redmine/blob/master/docker-compose-memcached.yml to start, the postgresql container fails to start and reports an error straight away:
Initializing database... popen failure: unable to allocate memory initdb: error: The program "postgres" is needed by initdb but was not found in the same directory as "/usr/lib/postgresql/14/bin/initdb". Check your installation.
How can I solve this problem?