mirror of
https://github.com/containers/podman.git
synced 2025-10-24 15:03:45 +08:00
Make kill, pause, and unpause parallel.
Operations like kill, pause, and unpause -- which can operation on one or more containers -- can greatly benefit from parallizing its main job (eq kill). In the case of pauseand unpause, an --all option as was added. pause --all will pause all **running** containers. And unpause --all will unpause all **paused** containers. Signed-off-by: baude <bbaude@redhat.com>
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
: ${PROG:=$(basename ${BASH_SOURCE})}
|
||||
|
||||
|
||||
__podman_previous_extglob_setting=$(shopt -p extglob)
|
||||
shopt -s extglob
|
||||
|
||||
@ -1934,6 +1935,10 @@ _podman_save() {
|
||||
}
|
||||
|
||||
_podman_pause() {
|
||||
local boolean_options="
|
||||
-a
|
||||
--all
|
||||
"
|
||||
local options_with_args="
|
||||
--help -h
|
||||
"
|
||||
@ -2035,6 +2040,10 @@ _podman_stop() {
|
||||
}
|
||||
|
||||
_podman_unpause() {
|
||||
local boolean_options="
|
||||
-a
|
||||
--all
|
||||
"
|
||||
local options_with_args="
|
||||
--help -h
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user