[Suggestion] podman kill on closing distrobox ephemeral
- 主要語言
- Go
- 星號
- 13k
- 分支
- 541
- 平均合併
- 20 小時 47 分鐘
- 30 天內合併 PR
- 4
描述
**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.
貢獻指南
研究方向
查看 distrobox-ephemeral 指令碼,了解目前如何停止容器(可能使用 podman stop)。找出呼叫 stop 指令的位置,並將其替換為 podman runtime 使用的 podman kill。檢查是否需要新增 distrobox kill 指令,並在 Void Linux 系統上測試此變更,以確保暫時性容器能正確移除。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- bash, docker, shell
- 領域
- cli
- Issue 類型
- 功能
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 描述清楚
- 新手友好度
- 45/100