diff --git a/pkg/api/handlers/compat/images_build.go b/pkg/api/handlers/compat/images_build.go index d4c8c0743a..4a11065b2b 100644 --- a/pkg/api/handlers/compat/images_build.go +++ b/pkg/api/handlers/compat/images_build.go @@ -804,6 +804,7 @@ func BuildImage(w http.ResponseWriter, r *http.Request) { if err := enc.Encode(m); err != nil { logrus.Warnf("failed to json encode error %v", err) } + flush() m.Aux = nil m.Stream = fmt.Sprintf("Successfully built %12.12s\n", imageID) if err := enc.Encode(m); err != nil {