Skip to content

Commit

Permalink
Replace deprecated PullOptions (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertjndw authored Jun 27, 2024
1 parent 0096008 commit ec53594
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions HadesScheduler/docker/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"io"
"sync"

"github.com/docker/docker/api/types"
image_types "github.com/docker/docker/api/types/image"
"github.com/docker/docker/client"
)

Expand All @@ -20,7 +20,7 @@ func pullImages(ctx context.Context, client *client.Client, images ...string) er
go func(img string) {
defer wg.Done()

response, err := client.ImagePull(ctx, img, types.ImagePullOptions{})
response, err := client.ImagePull(ctx, img, image_types.PullOptions{})
if err != nil {
errorsCh <- fmt.Errorf("failed to pull image %s: %v", img, err)
return
Expand Down

0 comments on commit ec53594

Please sign in to comment.