Fix networkMap construction (pointer always reference the last network found)
This commit is contained in:
parent
1cae35f96b
commit
6ac1216f8c
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
|
||||
}
|
||||
for _, network := range networkList {
|
||||
networkMap[network.ID] = &network
|
||||
networkToAdd := network
|
||||
networkMap[network.ID] = &networkToAdd
|
||||
}
|
||||
|
||||
var dockerDataList []dockerData
|
||||
|
|
Loading…
Reference in a new issue