compose icon indicating copy to clipboard operation
compose copied to clipboard

Inconsistency in depends_on with service_healthy Condition Across Different Docker Versions

Open cubxxw opened this issue 1 year ago • 1 comments

https://github.com/moby/moby/issues/47134

cubxxw avatar Jan 20 '24 12:01 cubxxw

Is there a specific version of Docker or Docker Compose where the integration of health checks with depends_on (service_healthy condition) is known to work consistently?

Docker compose v2.x supports service_healthy condition (until we get some regression)

Are there any known issues or limitations with this functionality in certain versions of Docker or Docker Compose that might explain the observed inconsistencies?

I don't think so

Could you provide guidance or best practices on ensuring consistent behavior of depends_on with health checks across different environments?

Use same version everywhere, and use a staging environment to test upgrades and double check any potential regression/change in behavior

ndeloof avatar Jan 22 '24 13:01 ndeloof

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Jul 14 '24 00:07 github-actions[bot]