Browse Source

After container restart register printer consumer

Signed-off-by: Joana Hrotko <[email protected]>
Joana Hrotko 1 năm trước cách đây
mục cha
commit
8b9fe89842
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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