Skip to content

healthcheck.test must start either by "CMD", "CMD-SHELL" or "NONE" #1

@Hassan313

Description

@Hassan313

Hi,

When I execute the docker-compose up -d I get the below error:
healthcheck.test must start either by "CMD", "CMD-SHELL" or "NONE"
I added the "CMD" keyword to the beginning of the test line and the error was gone.

test: CMD ["pg_isready", "-h", "postgres"]

Did I do the right thing?

Thanks

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