docker-host icon indicating copy to clipboard operation
docker-host copied to clipboard

docker-compose keep a healthcheck

Open leandross-picpay opened this issue 1 year ago • 3 comments

There's a check to keep health on pod ?

leandross-picpay avatar Jul 29 '24 01:07 leandross-picpay

Not so far, what would be a good healthcheck command? I'd add it then.

qoomon avatar Jul 29 '24 08:07 qoomon

I think it is not possible to have a healthcheck of iptables because iptables is not a daemon or service that runs in the background; instead, it is a tool for configuring the kernel’s packet filtering rules. Once the rules are set up, the packet filtering is handled by the Linux kernel itself.

qoomon avatar Jul 29 '24 08:07 qoomon

That means as long as the container is running it is healthy by definition :-)

Do you have a special use case? Or is it okay to have no healthcheck is this case?

qoomon avatar Jul 29 '24 08:07 qoomon