feat(gui): add 'Remove with Force' option in containers panel

Added a new menu option to remove containers using `docker rm --force`.
This commit is contained in:
galdadon 2025-02-07 00:45:45 +02:00
parent bedde4a037
commit 471af0a56a

View file

@ -330,6 +330,10 @@ func (gui *Gui) handleContainersRemoveMenu(g *gocui.Gui, v *gocui.View) error {
LabelColumns: []string{gui.Tr.Remove, "docker rm " + ctr.ID[1:10]},
OnPress: func() error { return handleMenuPress(container.RemoveOptions{}) },
},
{
LabelColumns: []string{gui.Tr.RemoveWithForce, "docker rm --force " + ctr.ID[1:10]},
OnPress: func() error { return handleMenuPress(container.RemoveOptions{Force: true}) },
},
{
LabelColumns: []string{gui.Tr.RemoveWithVolumes, "docker rm --volumes " + ctr.ID[1:10]},
OnPress: func() error { return handleMenuPress(container.RemoveOptions{RemoveVolumes: true}) },