Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit d56745c

Browse files
committed
detect stopped containers as "Created"
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent f52bdc5 commit d56745c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

local/compose/attach.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ func (s *composeService) getContainerStreams(ctx context.Context, container moby
114114
Stdin: true,
115115
Stdout: true,
116116
Stderr: true,
117-
Logs: true,
117+
Logs: false,
118118
})
119119
if err != nil {
120120
return nil, nil, err

local/compose/convergence.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ func (s *composeService) ensureService(ctx context.Context, observedState Contai
114114
w.Event(progress.RunningEvent(name))
115115
case status.ContainerCreated:
116116
case status.ContainerRestarting:
117+
case status.ContainerExited:
117118
w.Event(progress.CreatedEvent(name))
118119
default:
119120
eg.Go(func() error {

0 commit comments

Comments
 (0)