podman kube down --force doesn't seem to work #18797
Labels
kind/bug
Categorizes issue or PR as related to a bug.
kube
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Issue Description
Hi, I'm trying to clean up a pod created with
podman kube play
but the volume isn't being removed.From the official documentation:
But this parameter doesn't seem to work, the pod and container are in fact removed but the volume isn't.
This is my yaml file (in the steps section below I reported all the commands that I used to generate it):
The command
podman kube down --force
doesn't remove the volumepostgres-volume
even though the force parameter is used.Steps to reproduce the issue
Steps to reproduce the issue
podman run -d --name postgres -e POSTGRES_PASSWORD=test -p 5432:5432 -v postgres-volume:/var/lib/postgresql/data postgres
podman kube generate postgres > postgres.yaml
podman stop postgres && podman rm postgres && podman volume rm postgres-volume
podman kube play postgres.yaml
podman kube down --force postgres.yaml
podman volume ls
Describe the results you received
podman-volume
is still thereDescribe the results you expected
podman-volume
should be removed with the --force parameterpodman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
No response
Additional information
I even tried with
podman kube play --down --force
but it's the same thing, the volume isn't being removed.The text was updated successfully, but these errors were encountered: