refactor: ignore containers that failed to get inspected in docker

This commit is contained in:
Stavros
2025-06-15 19:56:37 +03:00
parent a621135ac0
commit 6157f75659

View File

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