Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

health_check #102

Open
my1990 opened this issue Sep 7, 2020 · 1 comment
Open

health_check #102

my1990 opened this issue Sep 7, 2020 · 1 comment

Comments

@my1990
Copy link

my1990 commented Sep 7, 2020

How to do health check? Is there an interface?

@noel-jackson
Copy link

I added this to the Dockerfile

HEALTHCHECK CMD dig +norecurse +short +retry=0 @127.0.0.1 $TEST_HOST || exit 1

and then set the TEST_HOST variable on the container to a host name that bind should be able to resolve.
If TEST_HOST is not set then dig returns the root servers.

Perhaps this can be adjusted to be of some use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants