mirror of
https://github.com/containrrr/watchtower.git
synced 2025-09-21 21:30:48 +02:00
Improve error handling
This commit is contained in:
parent
875efba1d5
commit
c4efc83875
1 changed files with 3 additions and 1 deletions
|
@ -45,7 +45,9 @@ func Update(client container.Client, names []string, cleanup bool) error {
|
||||||
for i, container := range containers {
|
for i, container := range containers {
|
||||||
stale, err := client.IsContainerStale(container)
|
stale, err := client.IsContainerStale(container)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
log.Infof("Unable to update container %. Proceeding to next.", containers[i].Name())
|
||||||
|
log.Debug(err)
|
||||||
|
stale = false
|
||||||
}
|
}
|
||||||
containers[i].Stale = stale
|
containers[i].Stale = stale
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue