From: hobin2017 (@hobin2017) <noreply+hobin2017@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: [pgvector/pgvector] issue #826: container-error: program "postgres" is needed by initdb but was not found
Date: Tue, 22 Apr 2025 02:05:44 +0000
Message-ID: <gh-pgvector-pgvector-826@github.com> (raw)
the docker-compose is given below.
```
version: '3'
services:
postgres:
image: pgvector/pgvector:pg16
network_mode: host
# restart: on-failure
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: xxx123456789!!
volumes:
- /home/18data_pgvector:/var/lib/postgresql/data
```
the error goes here
```
Recreating vectordb_postgres_1 ... done
Attaching to vectordb_postgres_1
vectordb_postgres_1 | popen failure: Cannot allocate memory
vectordb_postgres_1 | initdb: error: program "postgres" is needed by initdb but was not found in the same directory as "/usr/lib/postgresql/16/bin/initdb"
vectordb_postgres_1 exited with code 1
```