Merge pull request #764 from AnanyaKumar/net-host-bug
Only show network statistics for containers with bridge network
This commit is contained in:
commit
c19a3b076c
@ -167,7 +167,7 @@ func libcontainerConfigToContainerSpec(config *libcontainerConfigs.Config, mi *i
|
||||
}
|
||||
spec.Cpu.Mask = utils.FixCpuMask(config.Cgroups.CpusetCpus, mi.NumCores)
|
||||
|
||||
spec.HasNetwork = true
|
||||
spec.HasNetwork = len(config.Networks) > 0
|
||||
spec.HasDiskIo = true
|
||||
|
||||
return spec
|
||||
|
Loading…
Reference in New Issue
Block a user