|
|
|
@ -74,7 +74,11 @@ func stopStaleContainer(container container.Container, client container.Client,
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if params.LifecycleHooks {
|
|
|
|
if params.LifecycleHooks {
|
|
|
|
lifecycle.ExecutePreUpdateCommand(client, container)
|
|
|
|
if err := lifecycle.ExecutePreUpdateCommand(client, container); err != nil {
|
|
|
|
|
|
|
|
log.Error(err)
|
|
|
|
|
|
|
|
log.Info("Skipping container as the pre-update command failed")
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if err := client.StopContainer(container, params.Timeout); err != nil {
|
|
|
|
if err := client.StopContainer(container, params.Timeout); err != nil {
|
|
|
|
|