Browse Source

After container restart register printer consumer

Signed-off-by: Joana Hrotko <[email protected]>
Joana Hrotko 1 year ago
parent
commit
8b9fe89842
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pkg/compose/printer.go

+ 1 - 1
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