Restarting an unhealthy docker container based on healthcheck
Restarting of unhealty container feature was in the original PR (https://github.com/moby/moby/pull/22719), but was removed after a discussion and considered to be done later as enhancement of RestartPolicy. At this moment you can use this workaround to automatically restarting unhealty containers: https://hub.docker.com/r/willfarrell/autoheal/ Here is a sample compose file: version: ‘2’ services: autoheal: restart: always image: willfarrell/autoheal … Read more