fixed stack overflow error due to recursive call of rewrite

This commit is contained in:
yusing
2024-03-18 20:52:34 +00:00
parent 076c19c4ea
commit 8a640ec484
5 changed files with 17 additions and 7 deletions

View File

@@ -162,7 +162,7 @@ func (p *Provider) getDockerProxyConfigs() ([]*ProxyConfig, error) {
return nil, fmt.Errorf("unable to create docker client: %v", err)
}
containerSlice, err := p.dockerClient.ContainerList(context.Background(), container.ListOptions{})
containerSlice, err := p.dockerClient.ContainerList(context.Background(), container.ListOptions{All: true})
if err != nil {
return nil, fmt.Errorf("unable to list containers: %v", err)
}