diff --git a/docker-entrypoint b/docker-entrypoint index 0b50c84..243dea7 100755 --- a/docker-entrypoint +++ b/docker-entrypoint @@ -44,7 +44,7 @@ get_container_info() { else label_filter=",\"label\":\[\"${AUTOHEAL_CONTAINER_LABEL}=true\"\]" fi - url="${HTTP_ENDPOINT}/containers/json?filters=\{\"health\":\[\"unhealthy\"\]${label_filter}\}" + url="${HTTP_ENDPOINT}/containers/json?filters=\{\"status\":\[\"created\",\"running\",\"paused\",\"exited\",\"dead\"],\"health\":\[\"unhealthy\"\]${label_filter}\}" docker_curl "$url" } @@ -99,4 +99,4 @@ if [ "$1" = "autoheal" ] && [ -e "$DOCKER_SOCK" ];then else exec "$@" -fi \ No newline at end of file +fi