Skip to content

Force Remove Option for Containers#751

Open
achintya-7 wants to merge 1 commit into
jesseduffield:masterfrom
achintya-7:feat/force-remove
Open

Force Remove Option for Containers#751
achintya-7 wants to merge 1 commit into
jesseduffield:masterfrom
achintya-7:feat/force-remove

Conversation

@achintya-7
Copy link
Copy Markdown

Summary

Adds two options to the container remove menu so users can remove running containers without stopping them first (equivalent to docker rm --force).
Fixes/Implements: #748

Changes

  • Force remove – docker rm --force <container>. Uses existing gui.Tr.ForceRemove. Calls Container.Remove with RemoveOptions{Force: true}.
  • Force remove with volumes – docker rm --force --volumes <container>. Uses gui.Tr.ForceRemoveWithVolumes. Calls Container.Remove with RemoveOptions{Force: true, RemoveVolumes: true}.

i18n

  • Added ForceRemoveWithVolumes to the translation set and to all language files in pkg/i18n/ for the second menu label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant