From 1bcec299aebcb595bb3cf1b94fcb815de52834bb Mon Sep 17 00:00:00 2001
From: Qiao Han <qiao@supabase.io>
Date: Fri, 22 Mar 2024 16:06:53 +0700
Subject: [PATCH] fix: update deprecated image options

---
 internal/utils/docker.go | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/internal/utils/docker.go b/internal/utils/docker.go
index b9d75f603..45d288141 100644
--- a/internal/utils/docker.go
+++ b/internal/utils/docker.go
@@ -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"
@@ -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 {