skip to Main Content

Docker – Postgres container failed to start with initdb error. popen failure: Cannot allocate memory

I'm using postgres:12 Docker image on AWS instance under Ubuntu 20.04. postgres-tests: image: "postgres:12" restart: always command: postgres -c 'max_connections=200' environment: POSTGRES_DB: "${POSTGRES_DATABASE}" POSTGRES_USER: "${POSTGRES_USER}" POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}" ports: - "8396:5432" When running this container with docker-compose up -d it fails…

VIEW QUESTION
Back To Top
Search