From b2b3f9c461404add50bb17804e2189428de3e24a Mon Sep 17 00:00:00 2001 From: Tibor Vass Date: Tue, 5 Jun 2018 00:16:57 +0000 Subject: [PATCH] build: setting DOCKER_BUILDKIT environment variable to any non-empty string enables the use of buildkit Signed-off-by: Tibor Vass --- cli/command/image/build.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/command/image/build.go b/cli/command/image/build.go index a329378350..193a6a2799 100644 --- a/cli/command/image/build.go +++ b/cli/command/image/build.go @@ -172,7 +172,7 @@ func (out *lastProgressOutput) WriteProgress(prog progress.Progress) error { // nolint: gocyclo func runBuild(dockerCli command.Cli, options buildOptions) error { - if os.Getenv("DOCKER_BUILDKIT") == "1" { + if os.Getenv("DOCKER_BUILDKIT") != "" { return runBuildBuildKit(dockerCli, options) }