mirror of
https://github.com/containers/podman.git
synced 2025-06-24 19:42:56 +08:00
Merge pull request #16057 from mheon/fix_16046
Clean up when stopping pods
This commit is contained in:
@ -195,7 +195,7 @@ func (ic *ContainerEngine) PodStop(ctx context.Context, namesOrIds []string, opt
|
||||
}
|
||||
for _, p := range pods {
|
||||
report := entities.PodStopReport{Id: p.ID()}
|
||||
errs, err := p.StopWithTimeout(ctx, false, options.Timeout)
|
||||
errs, err := p.StopWithTimeout(ctx, true, options.Timeout)
|
||||
if err != nil && !errors.Is(err, define.ErrPodPartialFail) {
|
||||
report.Errs = []error{err}
|
||||
reports = append(reports, &report)
|
||||
|
Reference in New Issue
Block a user