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) }