From eccd41217f9ae8a88a1ad3a9803446ba1875b608 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Fri, 8 Dec 2023 15:07:50 +0100 Subject: [PATCH] fix network name --- app/Actions/Service/StartService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Actions/Service/StartService.php b/app/Actions/Service/StartService.php index 6f73c2f45..bff4be40f 100644 --- a/app/Actions/Service/StartService.php +++ b/app/Actions/Service/StartService.php @@ -16,8 +16,8 @@ class StartService $commands[] = "cd " . $service->workdir(); $commands[] = "echo 'Saved configuration files to {$service->workdir()}.'"; $commands[] = "echo 'Creating Docker network.'"; - $commands[] = "docker network inspect $network >/dev/null 2>&1 || docker network create --attachable $network >/dev/null 2>&1 || true"; - $commands[] = "echo 'Starting service {$service->name} on {$service->server->name}.'"; + $commands[] = "docker network inspect $service->uuid >/dev/null 2>&1 || docker network create --attachable $service->uuid >/dev/null 2>&1 || true"; + $commands[] = "echo 'Starting service $service->name on {$service->server->name}.'"; $commands[] = "echo 'Pulling images.'"; $commands[] = "docker compose pull"; $commands[] = "echo 'Starting containers.'";