Skip to content

Commit

Permalink
builder: setting DOCKER_BUILDKIT environment variable to any non-empt…
Browse files Browse the repository at this point in the history
…y string enables the use of buildkit

Signed-off-by: Tibor Vass <tibor@docker.com>
  • Loading branch information
Tibor Vass committed Jun 6, 2018
1 parent 17bcb1c commit b30095b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/command/image/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit b30095b

Please sign in to comment.