From 02b5c412fed2b684fea31a16fd5c836568bed466 Mon Sep 17 00:00:00 2001 From: nemat97 Date: Fri, 5 Jul 2024 16:43:18 +0200 Subject: [PATCH] add FromEnv option --- get/build.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/get/build.go b/get/build.go index 409e863..db9b0a1 100644 --- a/get/build.go +++ b/get/build.go @@ -88,7 +88,7 @@ func printBuild(builds []apps.Build, get *Cmd, out io.Writer, header bool) error } func pullImage(ctx context.Context, apiClient *api.Client, build *apps.Build) error { - cli, err := client.NewClientWithOpts(client.WithVersion(dockerAPIVersion)) + cli, err := client.NewClientWithOpts(client.WithVersion(dockerAPIVersion), client.FromEnv) if err != nil { return err }