-
Notifications
You must be signed in to change notification settings - Fork 2k
Add --all flag to docker container stop
command
#5930
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
just realised this is a duplicate of #1679, but that was created many years ago. Seems like it didn't get approved back then. Been finding myself doing |
I agree that we need better commands to stop containers and do cleanups. It might be something we would consider implementing in the near future. I can't say if adding an |
Hi, we're a group of students at UT Austin looking to contribute to virtualization-related open-source projects for our class. We came across this issue and would like to work on it if that's okay @Benehiko. Before we would proceed, we have some questions about the implementation since this is our first exposure to the Docker-cli codebase. Currently, I'm just stating my interest in contributing but I will follow up within the next 2 days with our understanding of the issue and our potential implementation design. Thanks. |
@mdhaduk this feature request still needs discussion (as mentioned above), and probably isn't a "good first issue" for that reason. This looks indded like a duplicate of; But there's some other tickets with related discussion listed in; |
@thaJeztah I understand, thank you for clarifying that! |
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 todocker 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
Implementation Details
--all/-a
flag to stop command options--all
is specified, fetch all running containers and stop them--all
is not specifiedBackwards 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!
The text was updated successfully, but these errors were encountered: