Expose network interfaces via runc events

The libcontainer network statistics are unreachable without manually
creating a libcontainer instance. To retrieve them via the CLI interface
of runc, we now expose them as well.

Signed-off-by: Sascha Grunert <sgrunert@suse.com>
This commit is contained in:
Sascha Grunert
2019-12-05 13:14:16 +01:00
parent c35c2c9cec
commit 41a20b5852
5 changed files with 31 additions and 26 deletions
+1
View File
@@ -163,6 +163,7 @@ func convertLibcontainerStats(ls *libcontainer.Stats) *types.Stats {
}
}
s.NetworkInterfaces = ls.Interfaces
return &s
}