Do not attribute connections to containers based on loopback addresses

This commit is contained in:
Alfonso Acosta
2016-08-10 10:56:37 +00:00
parent 3892273096
commit 94eb7454ff
2 changed files with 8 additions and 2 deletions

View File

@@ -264,6 +264,11 @@ func MapContainer2IP(m report.Node) []string {
if !ok {
continue
}
// loopback addresses are shared among all namespaces
// so we can't use them to attribute connections to a container
if report.IsLoopback(addr) {
continue
}
id := report.MakeScopedEndpointNodeID(scope, addr, "")
result = append(result, id)
}