diff --git a/pkg/context/context.go b/pkg/context/context.go index 75417aee..9842f23c 100644 --- a/pkg/context/context.go +++ b/pkg/context/context.go @@ -8,22 +8,19 @@ import ( "github.com/docker/cli/cli/context" contextStore "github.com/docker/cli/cli/context/store" cliflags "github.com/docker/cli/cli/flags" - "github.com/moby/term" ) func NewDefaultDockerContextStore() *command.ContextStoreWithDefault { - _, _, stderr := term.StdStreams() - dockerConfig := dConfig.LoadDefaultConfigFile(stderr) contextDir := dConfig.ContextStoreDir() storeConfig := command.DefaultContextStoreConfig() store := newContextStore(contextDir, storeConfig) - opts := &cliflags.CommonOptions{Context: "default"} + opts := &cliflags.ClientOptions{Context: "default"} dockerContextStore := &command.ContextStoreWithDefault{ Store: store, Resolver: func() (*command.DefaultContext, error) { - return command.ResolveDefaultContext(opts, dockerConfig, storeConfig, stderr) + return command.ResolveDefaultContext(opts, storeConfig) }, }