From 8b9fe89842701c290cbbeddf1b4e9d538ffe9f85 Mon Sep 17 00:00:00 2001 From: Joana Hrotko Date: Tue, 24 Sep 2024 12:17:15 +0100 Subject: [PATCH] After container restart register printer consumer Signed-off-by: Joana Hrotko --- pkg/compose/printer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/compose/printer.go b/pkg/compose/printer.go index fba8801a1..9f382f87d 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