mirror of
https://github.com/containrrr/watchtower.git
synced 2025-12-13 21:56:38 +01:00
feat: add timeout override for pre-update lifecycle hook
This commit is contained in:
parent
7e7d4bf9ce
commit
1d1c630f7a
7 changed files with 89 additions and 24 deletions
|
|
@ -75,7 +75,6 @@ func stopStaleContainer(container container.Container, client container.Client,
|
|||
}
|
||||
if params.LifecycleHooks {
|
||||
lifecycle.ExecutePreUpdateCommand(client, container)
|
||||
|
||||
}
|
||||
|
||||
if err := client.StopContainer(container, params.Timeout); err != nil {
|
||||
|
|
@ -140,4 +139,4 @@ func checkDependencies(containers []container.Container) {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue