mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-09-20 01:39:08 +08:00
Merge pull request #1785 from jedevc/default-to-local-controller
controller: default to using local controller
This commit is contained in:
@@ -11,7 +11,6 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"runtime"
|
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
@@ -496,7 +495,7 @@ func buildCmd(dockerCli command.Cli, rootOpts *rootOptions) *cobra.Command {
|
|||||||
if isExperimental() {
|
if isExperimental() {
|
||||||
flags.StringVar(&invokeFlag, "invoke", "", "Invoke a command after the build [experimental]")
|
flags.StringVar(&invokeFlag, "invoke", "", "Invoke a command after the build [experimental]")
|
||||||
flags.StringVar(&options.Root, "root", "", "Specify root directory of server to connect [experimental]")
|
flags.StringVar(&options.Root, "root", "", "Specify root directory of server to connect [experimental]")
|
||||||
flags.BoolVar(&options.Detach, "detach", runtime.GOOS == "linux", "Detach buildx server (supported only on linux) [experimental]")
|
flags.BoolVar(&options.Detach, "detach", false, "Detach buildx server (supported only on linux) [experimental]")
|
||||||
flags.StringVar(&options.ServerConfig, "server-config", "", "Specify buildx server config file (used only when launching new server) [experimental]")
|
flags.StringVar(&options.ServerConfig, "server-config", "", "Specify buildx server config file (used only when launching new server) [experimental]")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user