From ee729a7e6a8831381caeb94152631e74f025231a Mon Sep 17 00:00:00 2001 From: Michael Shamoon <4887959+shamoon@users.noreply.github.com> Date: Fri, 30 Dec 2022 20:31:25 -0800 Subject: [PATCH] remove error on no discovered services --- src/utils/config/api-response.js | 3 +++ src/utils/config/service-helpers.js | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/utils/config/api-response.js b/src/utils/config/api-response.js index a34505377..b03e38317 100644 --- a/src/utils/config/api-response.js +++ b/src/utils/config/api-response.js @@ -50,6 +50,9 @@ export async function servicesResponse() { try { discoveredServices = cleanServiceGroups(await servicesFromDocker()); + if (discoveredServices?.length === 0) { + console.debug("No containers were found with homepage labels."); + } } catch (e) { console.error("Failed to discover services, please check docker.yaml for errors or remove example entries."); if (e) console.error(e.toString()); diff --git a/src/utils/config/service-helpers.js b/src/utils/config/service-helpers.js index cccd010bd..e95159a6d 100644 --- a/src/utils/config/service-helpers.js +++ b/src/utils/config/service-helpers.js @@ -82,10 +82,6 @@ export async function servicesFromDocker() { }) ); - if (serviceServers.every(server => server.services.length === 0)) { - throw new Error('All docker servers failed to connect or returned no containers'); - } - const mappedServiceGroups = []; serviceServers.forEach((server) => {