Merge pull request #26516 from yongtang/26453-build-bad-syntax

Check bad syntax on dockerfile before building.
Upstream-commit: cecd4904f3
Component: cli
This commit is contained in:
Vincent Demeester
2016-09-23 12:24:20 +02:00
committed by GitHub

View File

@ -293,6 +293,9 @@ func runBuild(dockerCli *command.DockerCli, options buildOptions) error {
response, err := dockerCli.Client().ImageBuild(ctx, body, buildOptions)
if err != nil {
if options.quiet {
fmt.Fprintf(dockerCli.Err(), "%s", progBuff)
}
return err
}
defer response.Body.Close()