{"repo":"willfarrell/docker-autoheal","free":true,"listed":false,"github":"https://github.com/willfarrell/docker-autoheal","clone":"git clone https://github.com/willfarrell/docker-autoheal.git","description":"Monitor and restart unhealthy docker containers.","language":"Shell","stars":1983,"topics":["docker"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"Docker Autoheal Monitor and restart unhealthy docker containers. This functionality was proposed to be included with the addition of HEALTHCHECK , however didn't make the cut. This container is a stand-in till there is native support for --exit-on-unhealthy https://github.com/docker/docker/pull/22719. Supported tags and Dockerfile links - latest ( Dockerfile ) - Built daily - 1.1.0 ( Dockerfile ) - v0.7.0 ( Dockerfile ) How to use 1. Docker CLI UNIX socket passthrough TCP socket TCP with mTLS (HTTPS) The certificates and keys need these names and resides under /certs inside the container: ca.pem client-cert.pem client-key.pem See https://docs.docker.com/engine/security/https/ for how to configure TCP with mTLS Change Timezone If you need the timezone to match the local machine, you can map the /etc/localtime into the container. 2. Use in your container image Choose one of the three alternatives: a) Apply the label autoheal=true to your container to have it watched; b) Set ENV AUTOHEAL CONTAINER LABEL=all to watch all running containers; c) Set ENV AUTOHEAL CONTAINER LABEL to existing container label that has the value true ; Note: You must apply HEALTHCHECK to your docker images first. See https://docs.docker.com/engine/reference/builder/#healthcheck for details. Docker Compose (example) Optional Container Labels autoheal.stop.timeout=20 Per containers override for stop timeout seconds during restart --- --- Environment Defaults Variable Description --- --- AUTOHEAL CONTAINER","default_branch":null,"files":null,"tree":[],"storefront":"/r/willfarrell","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/willfarrell/docker-autoheal/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}