fix #4369 - treat unhealthy docker container as down

pull/4372/head
Vojtěch Fošnár 12 months ago committed by Louis Lam
parent b4e45c7ce8
commit d73684115a

@ -770,7 +770,10 @@ class Monitor extends BeanModel {
let res = await axios.request(options);
if (res.data.State.Running) {
if (res.data.State.Health && res.data.State.Health.Status !== "healthy") {
if (res.data.State.Health && res.data.State.Health.Status === "unhealthy") {
bean.status = DOWN;
bean.msg = res.data.State.Health.Status;
} else if (res.data.State.Health && res.data.State.Health.Status !== "healthy") {
bean.status = PENDING;
bean.msg = res.data.State.Health.Status;
} else {

Loading…
Cancel
Save