mirror of
https://github.com/containrrr/watchtower.git
synced 2025-09-22 05:40:50 +02:00
Increases stopContainer timeout from 60 seconds to 10min (#526)
This commit is contained in:
parent
3e069a707e
commit
006c4210fa
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue