Skip to content

Commit 4372842

Browse files
committed
Fix nerdctl ignores BUILDKIT_HOST
Signed-off-by: Kohei Tokunaga <[email protected]>
1 parent 57b2e04 commit 4372842

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/nerdctl/build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func newBuildCommand() *cobra.Command {
7575
}
7676

7777
func getBuildkitHost(cmd *cobra.Command) (string, error) {
78-
if cmd.Flags().Changed("buildkit-host") {
78+
if cmd.Flags().Changed("buildkit-host") || os.Getenv("BUILDKIT_HOST") != "" {
7979
// If address is explicitly specified, use it.
8080
buildkitHost, err := cmd.Flags().GetString("buildkit-host")
8181
if err != nil {

0 commit comments

Comments
 (0)