docker-bind
docker-bind copied to clipboard
health_check
How to do health check? Is there an interface?
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.