Skip to content

Container HEALTHCHECK Support #123

@GAS85

Description

@GAS85

Was wondering if there is any health check support could be implemented. Currently I have to mount nslookup, sh and few libraries to execute it.

    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      # Mount nslookup
      - /usr/bin/nslookup:/usr/bin/nslookup:ro
      # Mount sh to be able to execute nslookup from the healthcheck
      - /bin/sh:/bin/sh:ro
      # Needed libs
      - /lib:/lib:ro
      - /lib64:/lib64:ro
    ports:
      - "11053:53/udp" # Local Docker DNS
    labels:
      - autoheal=true
    healthcheck:
      test: nslookup somedomain 127.0.0.1
      interval: 5m
      timeout: 3s
      retries: 2

Any ideas how to improve it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions