Skip to content

Commit

Permalink
fixing srl-labs#456
Browse files Browse the repository at this point in the history
  • Loading branch information
steiler committed Jun 17, 2021
1 parent 417a7b9 commit 1be9c83
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions runtime/docker/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -360,14 +360,10 @@ func (c *DockerRuntime) ListContainers(ctx context.Context, gfilters []*types.Ge
}
var nr []dockerTypes.NetworkResource
if c.Mgmt.Network == "" {
netFilter := filters.NewArgs()
netFilter.Add("label", "containerlab")
nctx, cancel := context.WithTimeout(ctx, c.timeout)
defer cancel()

nr, err = c.Client.NetworkList(nctx, dockerTypes.NetworkListOptions{
Filters: netFilter,
})
nr, err = c.Client.NetworkList(nctx, dockerTypes.NetworkListOptions{})
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 1be9c83

Please sign in to comment.