From 6157f75659202377259484351d571865b0ec2ebf Mon Sep 17 00:00:00 2001 From: Stavros Date: Sun, 15 Jun 2025 19:56:37 +0300 Subject: [PATCH] refactor: ignore containers that failed to get inspected in docker --- internal/docker/docker.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/docker/docker.go b/internal/docker/docker.go index 323a79e..684ca0a 100644 --- a/internal/docker/docker.go +++ b/internal/docker/docker.go @@ -101,7 +101,8 @@ func (docker *Docker) GetLabels(appId string) (types.Labels, error) { // Check if there was an error if err != nil { - return types.Labels{}, err + log.Warn().Str("id", container.ID).Err(err).Msg("Error inspecting container, skipping") + continue } // Get the container name (for some reason it is /name)