From 6c929a45c74f0d54445c9b113cf61132d22f0561 Mon Sep 17 00:00:00 2001 From: Bryce Lampe Date: Thu, 14 Mar 2024 13:05:27 -0700 Subject: [PATCH] build: don't force default configuration Signed-off-by: Bryce Lampe --- controller/build/build.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/controller/build/build.go b/controller/build/build.go index 4fb54e35..b9a1eec3 100644 --- a/controller/build/build.go +++ b/controller/build/build.go @@ -3,7 +3,6 @@ package build import ( "context" "io" - "os" "path/filepath" "strings" "sync" @@ -19,7 +18,6 @@ import ( "github.com/docker/buildx/util/platformutil" "github.com/docker/buildx/util/progress" "github.com/docker/cli/cli/command" - "github.com/docker/cli/cli/config" dockeropts "github.com/docker/cli/opts" "github.com/docker/docker/api/types/container" "github.com/moby/buildkit/client" @@ -76,7 +74,7 @@ func RunBuild(ctx context.Context, dockerCli command.Cli, in controllerapi.Build } opts.Platforms = platforms - dockerConfig := config.LoadDefaultConfigFile(os.Stderr) + dockerConfig := dockerCli.ConfigFile() opts.Session = append(opts.Session, authprovider.NewDockerAuthProvider(dockerConfig, nil)) secrets, err := controllerapi.CreateSecrets(in.Secrets)