Skip to content

Commit

Permalink
Merge pull request #2600 from blampe/blampe/build-config
Browse files Browse the repository at this point in the history
build: don't force default configuration
  • Loading branch information
tonistiigi authored Jul 24, 2024
2 parents 897fc91 + 6c929a4 commit 1651809
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions controller/build/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package build
import (
"context"
"io"
"os"
"path/filepath"
"strings"
"sync"
Expand All @@ -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"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 1651809

Please sign in to comment.