소스 검색

After container restart register printer consumer

Signed-off-by: Joana Hrotko <[email protected]>
Joana Hrotko 1 년 전
부모
커밋
8b9fe89842
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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