mirror of https://github.com/docker/cli.git
Merge pull request #26516 from yongtang/26453-build-bad-syntax
Check bad syntax on dockerfile before building.
This commit is contained in:
commit
cecd4904f3
|
@ -293,6 +293,9 @@ func runBuild(dockerCli *command.DockerCli, options buildOptions) error {
|
||||||
|
|
||||||
response, err := dockerCli.Client().ImageBuild(ctx, body, buildOptions)
|
response, err := dockerCli.Client().ImageBuild(ctx, body, buildOptions)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
if options.quiet {
|
||||||
|
fmt.Fprintf(dockerCli.Err(), "%s", progBuff)
|
||||||
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
defer response.Body.Close()
|
defer response.Body.Close()
|
||||||
|
|
Loading…
Reference in New Issue