diff --git a/pkg/databind/internal/discovery/docker/docker.go b/pkg/databind/internal/discovery/docker/docker.go index 96fce6598..9776208ec 100644 --- a/pkg/databind/internal/discovery/docker/docker.go +++ b/pkg/databind/internal/discovery/docker/docker.go @@ -80,8 +80,10 @@ func getDiscoveries(containers []types.Container, matcher *discovery.FieldsMatch for _, network := range cont.NetworkSettings.Networks { if index == 0 { labels[data.PrivateIP] = network.IPAddress + labels[data.IP] = network.IPAddress } labels[data.PrivateIP+"."+strconv.Itoa(index)] = network.IPAddress + labels[data.IP+"."+strconv.Itoa(index)] = network.IPAddress index++ }