From 006c4210fab595adeac9b5d8314ad89784225355 Mon Sep 17 00:00:00 2001 From: Victor Moura Date: Fri, 1 May 2020 07:31:48 -0300 Subject: [PATCH] Increases stopContainer timeout from 60 seconds to 10min (#526) --- internal/actions/check.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/actions/check.go b/internal/actions/check.go index 785701f..dec9f60 100644 --- a/internal/actions/check.go +++ b/internal/actions/check.go @@ -45,7 +45,7 @@ func cleanupExcessWatchtowers(containers []container.Container, client container allContainersExceptLast := containers[0 : len(containers)-1] for _, c := range allContainersExceptLast { - if err := client.StopContainer(c, 60); err != nil { + if err := client.StopContainer(c, 600); err != nil { // logging the original here as we're just returning a count logrus.Error(err) stopErrors++