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

Check bad syntax on dockerfile before building.
This commit is contained in:
Vincent Demeester 2016-09-23 12:24:20 +02:00 committed by GitHub
commit cecd4904f3
1 changed files with 3 additions and 0 deletions

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