From d56745cba456edd6c3a6e4d666d33ede0aca7cfe Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Fri, 12 Feb 2021 12:03:15 +0100 Subject: [PATCH] detect stopped containers as "Created" Signed-off-by: Nicolas De Loof --- local/compose/attach.go | 2 +- local/compose/convergence.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/local/compose/attach.go b/local/compose/attach.go index d72e52e95..5c3096059 100644 --- a/local/compose/attach.go +++ b/local/compose/attach.go @@ -114,7 +114,7 @@ func (s *composeService) getContainerStreams(ctx context.Context, container moby Stdin: true, Stdout: true, Stderr: true, - Logs: true, + Logs: false, }) if err != nil { return nil, nil, err diff --git a/local/compose/convergence.go b/local/compose/convergence.go index 3b3fcc5df..e93221216 100644 --- a/local/compose/convergence.go +++ b/local/compose/convergence.go @@ -114,6 +114,7 @@ func (s *composeService) ensureService(ctx context.Context, observedState Contai w.Event(progress.RunningEvent(name)) case status.ContainerCreated: case status.ContainerRestarting: + case status.ContainerExited: w.Event(progress.CreatedEvent(name)) default: eg.Go(func() error {