Skip to content

Commit

Permalink
Fix use of deprecated container types in Docker library
Browse files Browse the repository at this point in the history
  • Loading branch information
arnested authored and dependabot[bot] committed Mar 22, 2024
1 parent 3e6cea8 commit 3015064
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion container.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"time"

"github.com/docker/docker/api/types"
typesContainer "github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/filters"
"github.com/docker/docker/client"
"ldddns.arnested.dk/internal/container"
Expand Down Expand Up @@ -102,7 +103,7 @@ func ignoreOneoff(containerInfo container.Container, config Config) bool {

func handleExistingContainers(ctx context.Context, config Config, docker *client.Client, egs *entryGroups) {
//nolint:exhaustivestruct
containers, err := docker.ContainerList(ctx, types.ContainerListOptions{})
containers, err := docker.ContainerList(ctx, typesContainer.ListOptions{})
if err != nil {
log.Logf(log.PriErr, "getting container list: %v", err)
}
Expand Down

0 comments on commit 3015064

Please sign in to comment.