Skip to content

Commit

Permalink
fix: update deprecated image options
Browse files Browse the repository at this point in the history
  • Loading branch information
sweatybridge committed Mar 22, 2024
1 parent 45850b8 commit 1bcec29
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/utils/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"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/docker/docker/api/types/mount"
"github.com/docker/docker/api/types/network"
"github.com/docker/docker/api/types/volume"
Expand Down Expand Up @@ -208,8 +209,8 @@ func GetRegistryImageUrl(imageName string) string {
return registry + "/supabase/" + imageName
}

func DockerImagePull(ctx context.Context, image string, w io.Writer) error {
out, err := Docker.ImagePull(ctx, image, types.ImagePullOptions{
func DockerImagePull(ctx context.Context, imageTag string, w io.Writer) error {
out, err := Docker.ImagePull(ctx, imageTag, image.PullOptions{
RegistryAuth: GetRegistryAuth(),
})
if err != nil {
Expand Down

0 comments on commit 1bcec29

Please sign in to comment.