mirror of
https://github.com/containrrr/watchtower.git
synced 2025-12-14 06:06:38 +01:00
#387 fix: switch to image id map and add additional tests
This commit is contained in:
parent
4e000fa89c
commit
7b8b8e8ad9
9 changed files with 244 additions and 102 deletions
|
|
@ -51,7 +51,7 @@ func cleanupExcessWatchtowers(containers []container.Container, client container
|
|||
}
|
||||
|
||||
if cleanup {
|
||||
if err := client.RemoveImage(c); err != nil {
|
||||
if err := client.RemoveImageByID(c.ImageID()); err != nil {
|
||||
// logging the original here as we're just returning a count
|
||||
logrus.Error(err)
|
||||
cleanupErrors++
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue