Better handle malformed docker labels
This commit is contained in:
parent
4d6754e4a7
commit
a4c795bda4
@ -102,6 +102,16 @@ export async function servicesFromDocker() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (!constructedService.name || !constructedService.group) {
|
||||||
|
logger.error(
|
||||||
|
`Error constructing service using homepage labels for container '${containerName.replace(
|
||||||
|
/^\//,
|
||||||
|
"",
|
||||||
|
)}'. Ensure required labels are present.`,
|
||||||
|
);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
return constructedService;
|
return constructedService;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user