mq-container
mq-container copied to clipboard
Healthcheck
Please add a healthcheck to the container so other containers/services can wait for the mq container to be healthy.
We have a healthcheck command called chkmqhealthy, which we use for a Kubernetes liveness probe. I think what you're asking for is a Docker Swarm compatible health check. We'll have to ensure that it doesn't clash on Kubernetes.
Hi, I tried to add HealthCheck command chkmqhealthy to my own docker file.
HEALTHCHECK --interval=1m --timeout=30s --retries=3 CMD chkmqhealthy || exit 1
But this what I get as result when I run my image
standard_init_linux.go:219: exec user process caused: no such file or directory
Any clues about my issue ? Thanks
My guess would be that you should put the fully qualified path to the command in, for example /usr/local/bin/chkmqhealthy
Is there a way to check health from load balancer?