containers / podman-py

Python bindings for Podman's RESTful API
Apache License 2.0
252 stars 94 forks source link

anonymous volumes not removed after container removal #328

Closed aparcar closed 8 months ago

aparcar commented 1 year ago

I'm creating and removing containers in a fast paste and the anonymous volumes quickly fill up the drives. I'm removing the containers with container.remove(v=True), however a volume containing modified files stays.

Currently I'm running library version 4.5.0 but I suspect it's the same issue with 4.6.0 since I couldn't find anything in the change notes.

If this is likely an upstream problem I'll report the issue there.

jwhonce commented 1 year ago

@aparcar Yes, that would seem to be more of a podman issue than podman-py, as you can see below the python code simply makes a RESTful call.

response = self.client.delete(f"/containers/{container_id}", params=params)