Better handle malformed docker labels (#2552)

pull/2563/head
shamoon 11 months ago committed by GitHub
parent ccad62b5c2
commit aa7cfa58ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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;
});

Loading…
Cancel
Save