Skip to content

Commit b808030

Browse files
authored
Merge pull request #283 from coroot/ignore_deleted_cgroups
ignore deleted cgroups
2 parents 5e4bdf8 + 9be271f commit b808030

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

containers/registry.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,9 @@ func (r *Registry) getOrCreateContainer(pid uint32) *Container {
335335
}
336336
return nil
337337
}
338+
if strings.HasSuffix(cg.Id, "(deleted)") {
339+
return nil
340+
}
338341
if c := r.containersByCgroupId[cg.Id]; c != nil {
339342
r.containersByPid[pid] = c
340343
return c

0 commit comments

Comments
 (0)