build: setting DOCKER_BUILDKIT environment variable to any non-empty string enables the use of buildkit

Signed-off-by: Tibor Vass <tibor@docker.com>
This commit is contained in:
Tibor Vass 2018-06-05 00:16:57 +00:00
parent 640cbb8d2f
commit b2b3f9c461
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ func (out *lastProgressOutput) WriteProgress(prog progress.Progress) error {
// nolint: gocyclo // nolint: gocyclo
func runBuild(dockerCli command.Cli, options buildOptions) error { func runBuild(dockerCli command.Cli, options buildOptions) error {
if os.Getenv("DOCKER_BUILDKIT") == "1" { if os.Getenv("DOCKER_BUILDKIT") != "" {
return runBuildBuildKit(dockerCli, options) return runBuildBuildKit(dockerCli, options)
} }