Increases stopContainer timeout from 60 seconds to 10min (#526)

pull/527/head
Victor Moura 5 years ago committed by GitHub
parent 3e069a707e
commit 006c4210fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -45,7 +45,7 @@ func cleanupExcessWatchtowers(containers []container.Container, client container
allContainersExceptLast := containers[0 : len(containers)-1] allContainersExceptLast := containers[0 : len(containers)-1]
for _, c := range allContainersExceptLast { 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 // logging the original here as we're just returning a count
logrus.Error(err) logrus.Error(err)
stopErrors++ stopErrors++

Loading…
Cancel
Save