Skip to content

Commit

Permalink
Better handle malformed docker labels (#2552)
Browse files Browse the repository at this point in the history
  • Loading branch information
shamoon authored Dec 31, 2023
1 parent ccad62b commit aa7cfa5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/utils/config/service-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});

Expand Down

0 comments on commit aa7cfa5

Please sign in to comment.