Browse Source

detect stopped containers as "Created"

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof 4 years ago
parent
commit
d56745cba4
2 changed files with 2 additions and 1 deletions
  1. 1 1
      local/compose/attach.go
  2. 1 0
      local/compose/convergence.go

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

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