Add feature to toggle --rm on by default
Open
Nobody has claimed this yet.
area/ux
kind/enhancement
- Dominant language
- Go
- Stars
- 6.1k
- Forks
- 2.2k
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 43
Description
I find myself constantly running docker run with --rm in my local environment.
As a feature request, it would be good to have a way to configure Docker CLI to always run containers with --rm as true (or enabled) by default.
As a workaround, it is possible to create a bash alias.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the Docker CLI's docker run entry point and how command defaults are configured. Compare the requested persistent --rm behavior with the bash-alias workaround, then define how users would enable it and verify that containers run with automatic removal when the setting is enabled.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, go
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100