mirror of https://github.com/docker/compose.git
only stop services started by `up` on interruption
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
06e71371ff
commit
ed38fe0da8
|
@ -62,11 +62,13 @@ func (s *composeService) Up(ctx context.Context, project *types.Project, options
|
|||
<-signalChan
|
||||
s.Kill(ctx, project.Name, api.KillOptions{ //nolint:errcheck
|
||||
Services: options.Create.Services,
|
||||
Project: project,
|
||||
})
|
||||
}()
|
||||
|
||||
return s.Stop(ctx, project.Name, api.StopOptions{
|
||||
Services: options.Create.Services,
|
||||
Project: project,
|
||||
})
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue