#387 fix: switch to image id map and add additional tests

This commit is contained in:
Simon Aronsson 2020-01-11 00:28:27 +01:00
parent 4e000fa89c
commit 7b8b8e8ad9
9 changed files with 244 additions and 102 deletions

View file

@ -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++