Skip to content

postgres not found #1314

Open
Open
@dwhitnall

Description

@dwhitnall

Hi all, this has just started happening and I have no idea where to start to resolve it as I have been running the same image on 3 containers (different stacks) for over a year.
The image I've been using is postgres:14
However recently I've been getting this

postgres-lube  |
postgres-lube  | PostgreSQL Database directory appears to contain a database; Skipping initialization
postgres-lube  |
postgres-lube  | /usr/local/bin/docker-entrypoint.sh: line 351: exec: postgres: not found
postgres-lube exited with code 127

Compose YML

  postgres:
    container_name: postgres-lube
    image: postgres:14
    restart: unless-stopped
    networks:
      - lubelogger
    environment:
      POSTGRES_USER: "l****"
      POSTGRES_PASSWORD: "l*****"
      POSTGRES_DB: "lubelogger"
    volumes:
      - /home/docker/lubelogger/pgdata/data:/var/lib/postgresql/data
      - /etc/localtime:/etc/localtime:ro

This has been plaguing me for a number of days now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions