mirror of
https://github.com/docker/cli.git
synced 2026-01-19 21:41:31 +03:00
Fixes #10457-Pause-and-unpause-accept-multi-containers
Applied multi parameters to pause and unpause.
Created a new test file dedicated for pause commands.
Created a new utility function to get a slice of paused containers.
Updated documentation
Signed-off-by: André Martins <martins@noironetworks.com>
Upstream-commit: d73a9d48f5
Component: cli
This commit is contained in:
committed by
Tibor Vass
parent
9ba45bbe34
commit
b5d06e072c
@@ -1360,7 +1360,7 @@ nano-second part of the timestamp will be padded with zero when necessary.
|
||||
|
||||
## pause
|
||||
|
||||
Usage: docker pause CONTAINER
|
||||
Usage: docker pause CONTAINER [CONTAINER...]
|
||||
|
||||
Pause all processes within a container
|
||||
|
||||
@@ -1397,22 +1397,6 @@ just a specific mapping:
|
||||
$ sudo docker port test 7890
|
||||
0.0.0.0:4321
|
||||
|
||||
## pause
|
||||
|
||||
Usage: docker pause CONTAINER
|
||||
|
||||
Pause all processes within a container
|
||||
|
||||
The `docker pause` command uses the cgroups freezer to suspend all processes in
|
||||
a container. Traditionally when suspending a process the `SIGSTOP` signal is
|
||||
used, which is observable by the process being suspended. With the cgroups freezer
|
||||
the process is unaware, and unable to capture, that it is being suspended,
|
||||
and subsequently resumed.
|
||||
|
||||
See the
|
||||
[cgroups freezer documentation](https://www.kernel.org/doc/Documentation/cgroups/freezer-subsystem.txt)
|
||||
for further details.
|
||||
|
||||
## rename
|
||||
|
||||
Usage: docker rename OLD_NAME NEW_NAME
|
||||
@@ -2074,7 +2058,7 @@ them to [*Share Images via Repositories*](
|
||||
|
||||
## unpause
|
||||
|
||||
Usage: docker unpause CONTAINER
|
||||
Usage: docker unpause CONTAINER [CONTAINER...]
|
||||
|
||||
Unpause all processes within a container
|
||||
|
||||
|
||||
Reference in New Issue
Block a user