Merge pull request #724 from vincentlepot/fix_network_label_service

Fix networkMap construction in ListServices
This commit is contained in:
Emile Vauge 2016-10-10 17:16:09 +02:00 committed by GitHub
commit d3f79c7ad3

View file

@ -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