We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57b2e04 commit 4372842Copy full SHA for 4372842
cmd/nerdctl/build.go
@@ -75,7 +75,7 @@ func newBuildCommand() *cobra.Command {
75
}
76
77
func getBuildkitHost(cmd *cobra.Command) (string, error) {
78
- if cmd.Flags().Changed("buildkit-host") {
+ if cmd.Flags().Changed("buildkit-host") || os.Getenv("BUILDKIT_HOST") != "" {
79
// If address is explicitly specified, use it.
80
buildkitHost, err := cmd.Flags().GetString("buildkit-host")
81
if err != nil {
0 commit comments