Skip to content

healthcheck does not pass/return causing docker compose up --wait to wait forever #417

@tigerinus

Description

@tigerinus

Use the docker-compose.yml suggested in README.md (or build a custom one - doesn't matter because it's an issue caused by container)

Then run docker compose up --wait in the path.

Expect: OpenHAB should be up and running in a healthy state

Actual: It waits forever...

docker compose up --wait
[+] Running 7/7
 ⠿ openhab Pulled                                                                                                             48.8s
   ⠿ bb263680fed1 Pull complete                                                                                               12.5s
   ⠿ 269f6a0092c7 Pull complete                                                                                               39.5s
   ⠿ 396b1d4e3e2d Pull complete                                                                                               44.4s
   ⠿ 31a2a56a6096 Pull complete                                                                                               47.2s
   ⠿ de5f82bdb506 Pull complete                                                                                               47.3s
   ⠿ c58db1d12c8d Pull complete                                                                                               47.4s
[+] Running 0/1
 ⠿ Container openhab-openhab-1  Waiting                                                                             
[+] Running 0/1                                                                                                   22
 ⠿ Container openhab-openhab-1  Waiting                                                                       24.9s

Let's look at some other docker compose, like this one:

https://github.com/docker/awesome-compose/tree/master/wordpress-mysql

docker compose up --wait
[+] Running 2/2
 ⠿ Container wordpress-mysql-db-1         Healthy                                                   0.5s
 ⠿ Container wordpress-mysql-wordpress-1  Healthy                                                   0.5s

This is what's expected: The container should be in healthy state and --wait returns.

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting feedbackbugstaleAs soon as a PR is marked stale, it can be removed 6 months later.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions