Skip to content

Commit

Permalink
add ignored device
Browse files Browse the repository at this point in the history
  • Loading branch information
Rouzip authored and dims committed Oct 16, 2023
1 parent 4dcb908 commit 81b16be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion container/libcontainer/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ func networkStatsFromProc(rootFs string, pid int) ([]info.InterfaceStats, error)
return ifaceStats, nil
}

var ignoredDevicePrefixes = []string{"lo", "veth", "docker"}
var ignoredDevicePrefixes = []string{"lo", "veth", "docker", "nerdctl"}

func isIgnoredDevice(ifName string) bool {
for _, prefix := range ignoredDevicePrefixes {
Expand Down

0 comments on commit 81b16be

Please sign in to comment.