Changed Docker network filter to allow any swarm network
This commit is contained in:
parent
8cb3f0835a
commit
8af39bdaf7
1 changed files with 1 additions and 1 deletions
|
@ -825,7 +825,7 @@ func (p *Provider) listServices(ctx context.Context, dockerClient client.APIClie
|
||||||
return []dockerData{}, err
|
return []dockerData{}, err
|
||||||
}
|
}
|
||||||
networkListArgs := filters.NewArgs()
|
networkListArgs := filters.NewArgs()
|
||||||
networkListArgs.Add("driver", "overlay")
|
networkListArgs.Add("scope", "swarm")
|
||||||
|
|
||||||
networkList, err := dockerClient.NetworkList(ctx, dockertypes.NetworkListOptions{Filters: networkListArgs})
|
networkList, err := dockerClient.NetworkList(ctx, dockertypes.NetworkListOptions{Filters: networkListArgs})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue