feat: add timeout override for pre-update lifecycle hook

This commit is contained in:
Simon Aronsson 2019-11-25 21:11:12 +01:00 committed by Simon Aronsson
parent 7e7d4bf9ce
commit 1d1c630f7a
7 changed files with 89 additions and 24 deletions

View file

@ -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) {
}
}
}
}
}