Add --all flag to `docker container stop` command
まだ誰も着手していません。
評価
調査の方向性
issue にはソースファイルやテストが記載されていません。まず既存の docker container stop コマンドとそのオプション解析を見つけ、次に --all が実行中のコンテナを停止しつつ、タイムアウト、シグナル処理、現在の動作を維持することを確認してください。
索引モデルが issue の本文から書いたものです。
説明
Problem Statement
Currently, stopping multiple containers requires explicitly listing them or using shell commands to pipe docker ps output. This creates friction for developers and operators who frequently need to stop all running containers during development or cleanup operations.
Proposed Solution
Add an --all flag to docker container stop that allows stopping all running containers in a single command. This aligns with existing Docker CLI patterns (e.g., docker container rm -a) and provides a more convenient workflow.
Benefits
- Improved developer experience by reducing command complexity
- Consistency with other Docker commands that support bulk operations
- Reduced risk of typos when manually listing container IDs
- Better automation support for cleanup scripts
Implementation Details
- Add
--all/-aflag to stop command options - When
--allis specified, fetch all running containers and stop them - Maintain existing timeout and signal handling
- Preserve current behavior when
--allis not specified
Backwards Compatibility
This change is fully backwards compatible as it only adds a new optional flag.
Am happy to contribute if this enhancement request gets approved!
- 主要言語
- Go
- スター
- 6.1k
- フォーク
- 2.2k
- 平均マージ
- 1日 10時間
- マージ済み PR(30日)
- 47
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
docker/cli のほかの issue
-
kind/bug status/0-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
kind/bug status/0-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
-
kind/feature status/0-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
kind/bug status/0-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 60/100
github/gh-aw-mcpg#13748 ·
-
agentic-workflows
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
googleapis/librarian#7670 · コメント 2 件 ·