Containers should be pruned before pods #4346
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Say we're running through a Podman tutorial and want to clean up afterwards. Using
podman system prune
fails because pods are deleted before containers.Steps to reproduce the issue:
Describe the results you received:
Describe the results you expected:
Pruning should remove the stopped containers in a fully stopped pod before removing the pod. If only parts of a pod are stopped, then it should skip deleting the pod entirely.
The error message is also a bit weird; I'm not creating a new container so it should not "already" exist.
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):The text was updated successfully, but these errors were encountered: