mirror of
https://github.com/andreicscs/HoneyWire
synced 2026-06-26 12:39:53 +00:00
fix: update Docker Go SDK types for v28.5.2 compatibility
This commit is contained in:
@@ -17,7 +17,7 @@ import (
|
||||
"text/template"
|
||||
"time"
|
||||
|
||||
"github.com/docker/docker/api/types"
|
||||
"github.com/docker/docker/api/types/container"
|
||||
"github.com/docker/docker/client"
|
||||
"github.com/honeywire/wizard/core/discovery"
|
||||
"github.com/honeywire/wizard/core/scanner"
|
||||
@@ -468,7 +468,7 @@ func buildDockerPortMap() (map[int]string, error) {
|
||||
}
|
||||
defer cli.Close()
|
||||
|
||||
containers, err := cli.ContainerList(ctx, types.ContainerListOptions{})
|
||||
containers, err := cli.ContainerList(ctx, container.ListOptions{})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/docker/docker/api/types"
|
||||
"github.com/docker/docker/api/types/container"
|
||||
"github.com/docker/docker/api/types/filters"
|
||||
"github.com/docker/docker/client"
|
||||
"github.com/honeywire/wizard/internal/cli"
|
||||
@@ -48,7 +48,7 @@ func HandleFiredrill() error {
|
||||
f.Add("label", fmt.Sprintf("com.docker.compose.project=%s", deploy.ProjectName))
|
||||
|
||||
listCtx, listCancel := context.WithTimeout(context.Background(), 10*time.Second)
|
||||
containers, err := dockerClient.ContainerList(listCtx, types.ContainerListOptions{
|
||||
containers, err := dockerClient.ContainerList(listCtx, container.ListOptions{
|
||||
Filters: f,
|
||||
})
|
||||
listCancel()
|
||||
|
||||
Reference in New Issue
Block a user