docker / docker/cli

Add feature to toggle --rm on by default

Open
#3,366 0 comments 4 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.