mirror of
https://github.com/docker/compose.git
synced 2025-07-24 22:24:41 +02:00
detect stopped containers as "Created"
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
f52bdc54d8
commit
d56745cba4
@ -114,7 +114,7 @@ func (s *composeService) getContainerStreams(ctx context.Context, container moby
|
|||||||
Stdin: true,
|
Stdin: true,
|
||||||
Stdout: true,
|
Stdout: true,
|
||||||
Stderr: true,
|
Stderr: true,
|
||||||
Logs: true,
|
Logs: false,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, nil, err
|
return nil, nil, err
|
||||||
|
@ -114,6 +114,7 @@ func (s *composeService) ensureService(ctx context.Context, observedState Contai
|
|||||||
w.Event(progress.RunningEvent(name))
|
w.Event(progress.RunningEvent(name))
|
||||||
case status.ContainerCreated:
|
case status.ContainerCreated:
|
||||||
case status.ContainerRestarting:
|
case status.ContainerRestarting:
|
||||||
|
case status.ContainerExited:
|
||||||
w.Event(progress.CreatedEvent(name))
|
w.Event(progress.CreatedEvent(name))
|
||||||
default:
|
default:
|
||||||
eg.Go(func() error {
|
eg.Go(func() error {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user