From 5ab171b744b3c96fe22a16ab5019e38369ec84af Mon Sep 17 00:00:00 2001 From: Jan Semmelink <jan@uafrica.com> Date: Wed, 13 Oct 2021 09:41:41 +0200 Subject: [PATCH] Update stopping of containers --- mage_helpers/debug.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mage_helpers/debug.go b/mage_helpers/debug.go index 3d07d6c..58ac652 100644 --- a/mage_helpers/debug.go +++ b/mage_helpers/debug.go @@ -8,6 +8,7 @@ import ( "os/exec" "os/signal" "os/user" + "strings" "syscall" "github.com/docker/docker/api/types" @@ -123,7 +124,7 @@ func stopRunningSamDocker() { for _, container := range containers { mustStop := false - if container.Command == "/var/rapid/aws-lambda-rie" { + if strings.Contains(container.Command, "/var/rapid/aws-lambda-rie") { mustStop = true } else { for _, port := range container.Ports { -- GitLab