Merge pull request #724 from vincentlepot/fix_network_label_service
Fix networkMap construction in ListServices
This commit is contained in:
commit
d3f79c7ad3
1 changed files with 2 additions and 1 deletions
|
@ -615,7 +615,8 @@ func listServices(ctx context.Context, dockerClient client.APIClient) ([]dockerD
|
||||||
return []dockerData{}, err
|
return []dockerData{}, err
|
||||||
}
|
}
|
||||||
for _, network := range networkList {
|
for _, network := range networkList {
|
||||||
networkMap[network.ID] = &network
|
networkToAdd := network
|
||||||
|
networkMap[network.ID] = &networkToAdd
|
||||||
}
|
}
|
||||||
|
|
||||||
var dockerDataList []dockerData
|
var dockerDataList []dockerData
|
||||||
|
|
Loading…
Reference in a new issue