diff --git a/pkg/compose/printer.go b/pkg/compose/printer.go index fba8801a15..9f382f87db 100644 --- a/pkg/compose/printer.go +++ b/pkg/compose/printer.go @@ -98,7 +98,7 @@ func (p *printer) Run(cascade api.Cascade, exitCodeFrom string, stopFn func() er case api.UserCancel: aborting = true case api.ContainerEventAttach: - if _, ok := containers[id]; ok { + if attached, ok := containers[id]; ok && attached { continue } containers[id] = true