Skip to content

Commit

Permalink
fix: more types
Browse files Browse the repository at this point in the history
  • Loading branch information
mdelapenya committed Jun 14, 2024
1 parent c855a27 commit e434d06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/ollama/ollama.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"fmt"
"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/api/types/image"

"github.com/testcontainers/testcontainers-go"
"github.com/testcontainers/testcontainers-go/internal/core"
Expand Down Expand Up @@ -47,7 +47,7 @@ func (c *OllamaContainer) Commit(ctx context.Context, targetImage string) error
return err
}

list, err := cli.ImageList(ctx, types.ImageListOptions{Filters: filters.NewArgs(filters.Arg("reference", targetImage))})
list, err := cli.ImageList(ctx, image.ListOptions{Filters: filters.NewArgs(filters.Arg("reference", targetImage))})
if err != nil {
return fmt.Errorf("listing images %w", err)
}
Expand Down

0 comments on commit e434d06

Please sign in to comment.