Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Add --all flag to `docker container stop` command

オープン
#5,930 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
docker, go
領域
cli

調査の方向性

issue にはソースファイルやテストが記載されていません。まず既存の docker container stop コマンドとそのオプション解析を見つけ、次に --all が実行中のコンテナを停止しつつ、タイムアウト、シグナル処理、現在の動作を維持することを確認してください。

索引モデルが issue の本文から書いたものです。

説明

kind/feature status/0-triage

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

  1. Improved developer experience by reducing command complexity
  2. Consistency with other Docker commands that support bulk operations
  3. Reduced risk of typos when manually listing container IDs
  4. Better automation support for cleanup scripts

Implementation Details

  • Add --all/-a flag to stop command options
  • When --all is specified, fetch all running containers and stop them
  • Maintain existing timeout and signal handling
  • Preserve current behavior when --all is 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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

docker/cli のほかの issue

docker/cli の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。