From 7db0aed2a5235a471b5b67f7d57b903c9c882ff0 Mon Sep 17 00:00:00 2001 From: Simon Aronsson Date: Sat, 6 Apr 2019 14:27:50 +0200 Subject: [PATCH] print to log if multiple watchtower instances are detected --- actions/check.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/actions/check.go b/actions/check.go index 2517dc2..a95133e 100644 --- a/actions/check.go +++ b/actions/check.go @@ -3,6 +3,8 @@ package actions import ( "sort" + log "github.com/sirupsen/logrus" + "github.com/containrrr/watchtower/container" ) @@ -17,6 +19,7 @@ func CheckPrereqs(client container.Client, cleanup bool) error { } if len(containers) > 1 { + log.Info("Found multiple running watchtower instances. Cleaning up") sort.Sort(container.ByCreated(containers)) // Iterate over all containers execept the last one