mirror of
https://github.com/docker/compose.git
synced 2025-07-25 14:44:29 +02:00
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
|
<-signalChan
|
||||||
s.Kill(ctx, project.Name, api.KillOptions{ //nolint:errcheck
|
s.Kill(ctx, project.Name, api.KillOptions{ //nolint:errcheck
|
||||||
Services: options.Create.Services,
|
Services: options.Create.Services,
|
||||||
|
Project: project,
|
||||||
})
|
})
|
||||||
}()
|
}()
|
||||||
|
|
||||||
return s.Stop(ctx, project.Name, api.StopOptions{
|
return s.Stop(ctx, project.Name, api.StopOptions{
|
||||||
Services: options.Create.Services,
|
Services: options.Create.Services,
|
||||||
|
Project: project,
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user