Skip to content

bug: when starting the docker-compose,there is an error. #16876

@longtsing

Description

@longtsing

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

when docker-compose up there is an error to fail.

Creating postgres-test_db_1 ... done
Attaching to postgres-test_db_1
db_1  | popen failure: Cannot allocate memory
db_1  | initdb: error: program "postgres" is needed by initdb but was not found in the same directory as "/usr/lib/postgresql/16/bin/initdb"

There are some materials relating the problem.

https://codereviewvideos.com/postgres-16-docker-workaround-program-postgres-is-needed-by-initdb/

Relevant Log Output

Expected Behavior

No response

Steps to Reproduce

docker-compose up

Environment

  • Host OS:
    Linux 4.19.90-52.15.v2207.ky10.x86_64 chore: Initial GHA workflow #1 SMP Thu Nov 24 21:50:03 CST 2022 x86_64 x86_64 x86_64 GNU/Linux
    Docker version 18.09.0, build
    Docker Compose version v2.33.1

  • docker image
    postgres:16 ,postgres:16.8

  • Coder version:

  • the latest

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triageIssue that require triage

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy