89luca89 / 89luca89/distrobox

[Suggestion] podman kill on closing distrobox ephemeral

Ouverte
#1,939 4 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
enhancement
Langage dominant
Go
Étoiles
13k
Forks
541
Merge moyen
20 h 47 min
PR mergées (30 j)
4

Description

**Is your feature request related to a problem? Please describe.**
Yeah. On my system (Void musl), `podman stop` does not stop a rootless container, erroring with `Error: given PID did not die within timeout`. Thus the container does not actually get deleted, defeating the point of having an 'ephemeral' container.

**Describe the solution you'd like**
In the case of podman, close ephemeral containers with `podman kill`. This may also require a related `distrobox kill` to be called by distrobox-ephemeral.

**Describe alternatives you've considered**
Fixing the original problem of containers not being stopped properly (I have no idea how to do this)
Running podman --rm

**Additional context**
On void, at least for me, I sometimes have to use `sudo pkill` instead of `pkill`. I'm not sure why. This is probably related.
podman kill always works on my system, rootless or otherwise.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.