mirror of
https://github.com/containers/podman.git
synced 2025-05-20 16:47:39 +08:00
Add rm --filter option
--filter : remove the filtered container. Signed-off-by: Toshiki Sonoda <sonoda.toshiki@fujitsu.com>
This commit is contained in:
@ -995,7 +995,7 @@ func (r *Runtime) RemoveDepend(ctx context.Context, rmCtr *Container, force bool
|
||||
return nil, err
|
||||
}
|
||||
for _, cID := range podContainerIDS {
|
||||
rmReports = append(rmReports, &reports.RmReport{Id: cID})
|
||||
rmReports = append(rmReports, &reports.RmReport{Id: cID, RawInput: cID})
|
||||
}
|
||||
return rmReports, nil
|
||||
}
|
||||
@ -1023,7 +1023,7 @@ func (r *Runtime) RemoveDepend(ctx context.Context, rmCtr *Container, force bool
|
||||
rmReports = append(rmReports, reports...)
|
||||
}
|
||||
|
||||
report := reports.RmReport{Id: rmCtr.ID()}
|
||||
report := reports.RmReport{Id: rmCtr.ID(), RawInput: rmCtr.ID()}
|
||||
report.Err = r.removeContainer(ctx, rmCtr, force, removeVolume, false, timeout)
|
||||
return append(rmReports, &report), nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user