Over the past few days I have noticed the healthcheck failing every couple of minutes. Turns out it is because the healthcheck is trying to curl https://api.ipify.org which does not seem to be reliably responding to requests.
I have overridden the healthcheck on to use http://www.gstatic.com/generate_204 instead and that is working much better. If the site does not come back up or turns out to not be stable anymore to determine connectivity you may want to consider the link I am using as a work around. I have a container autohealer that was restarting this container every-time the healthcheck failed so I had to do something to get around this for now.
Over the past few days I have noticed the healthcheck failing every couple of minutes. Turns out it is because the healthcheck is trying to curl https://api.ipify.org which does not seem to be reliably responding to requests.
Here is where the healthcheck is referencing that site: https://github.com/dperson/openvpn-client/blob/a08d70a5fd4c192390305accd5593f3348e04d4d/Dockerfile#L14
I have overridden the healthcheck on to use http://www.gstatic.com/generate_204 instead and that is working much better. If the site does not come back up or turns out to not be stable anymore to determine connectivity you may want to consider the link I am using as a work around. I have a container autohealer that was restarting this container every-time the healthcheck failed so I had to do something to get around this for now.
Thanks for considering an update to correct this.