mirror of
https://github.com/docker/compose.git
synced 2026-08-04 14:47:40 +00:00
compose.build: Wait for progress writer after build
Signed-off-by: Chris Crone <christopher.crone@docker.com>
This commit is contained in:
parent
6e76aadfd6
commit
ddaec1a367
1 changed files with 4 additions and 0 deletions
|
|
@ -130,6 +130,10 @@ func (s *composeService) build(ctx context.Context, project *types.Project, opts
|
|||
|
||||
// We rely on buildx "docker" builder integrated in docker engine, so don't need a DockerAPI here
|
||||
_, err = build.Build(ctx, driverInfo, opts, nil, nil, w)
|
||||
errW := w.Wait()
|
||||
if err == nil {
|
||||
err = errW
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue