docker-openldap icon indicating copy to clipboard operation
docker-openldap copied to clipboard

Healthcheck for the container

Open SchoolGuy opened this issue 2 years ago • 3 comments

Desired Behavior

It would be helpful to have a health-check available for the image to be able to tell if the container is responsive.

Current Behavior

Currently the fact that the container is running is indicating that openLDAP is working, this is however an assumption that is not true in all cases.

Alternatives Considered

None

Context

  • Docker: https://docs.docker.com/engine/reference/builder/#healthcheck
  • K8s: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/

SchoolGuy avatar Sep 27 '22 14:09 SchoolGuy

Up ?

adrienbuffet avatar Apr 20 '23 09:04 adrienbuffet

Would also like to see this.

Ryonez avatar Jun 11 '23 14:06 Ryonez

Would be nice. For now I just do:

    healthcheck:
      test: ["CMD", "cat", "/run/slapd/slapd.pid"]
      interval: 15s
      timeout: 30s
      retries: 5
      start_period: 5s

Work well enough. Of course, start_period is busted in moby/moby 25.x but it'll be fast one day :)

voc0der avatar Feb 08 '24 14:02 voc0der