sameersbn / docker-redmine

Docker Image for Redmine
http://www.damagehead.com/docker-redmine/
MIT License
1.25k stars 491 forks source link

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

Closed wangyu8460958 closed 5 months ago

wangyu8460958 commented 5 months ago

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?

jcormier commented 5 months ago

Could you happen to have docker version 5:20? A quick google points in that direction.

https://stackoverflow.com/a/76571292

wangyu8460958 commented 5 months ago

@jcormier , thank you, this method solve my question.