mirror of
https://github.com/containers/podman.git
synced 2026-03-29 03:52:19 -04:00
It looks like we had some logic for this from #10789 but it does not appear to have ever worked; we can't pull external containers out of the DB, so the ContainerRm call failed unconditionally. Instead, just handle them in Libpod when we're removing images. We're removing every image, so setting Force when removing images should get rid of all external containers. It's a little later in the process than the current (nonfunctional) solution is but I can't think of a reason why that would be bad. [NO NEW TESTS NEEDED] We do not currently test `system reset`. We should probably reevaluate that at some point this year. Fixes https://issues.redhat.com/browse/RHEL-21261 Signed-off-by: Matt Heon <mheon@redhat.com>