From e83dead3ab42d4b587950498b74096ed89cb8e67 Mon Sep 17 00:00:00 2001 From: Ben Hardill Date: Mon, 15 Jul 2024 10:32:49 +0100 Subject: [PATCH] Update docker.js Co-authored-by: Stephen McLaughlin <44235289+Steve-Mcl@users.noreply.github.com> --- docker.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docker.js b/docker.js index b04ea73..67fb293 100644 --- a/docker.js +++ b/docker.js @@ -200,9 +200,12 @@ module.exports = { this._app.log.info('[docker] unable to find network') process.exit(-9) } - } else { + } else if (networks.length === 1) { this._app.log.info(`[docker] using network ${networks[0].Name}`) this._network = networks[0].Name + } else { + this._app.log.info('[docker] unable to find network') + process.exit(-9) } // Get a list of all projects - with the absolute minimum of fields returned