Fix inconsistency for pause and unpause
Signed-off-by: yuexiao-wang <wang.yuexiao@zte.com.cn>
This commit is contained in:
parent
9a30560fda
commit
082f4919ca
4 changed files with 24 additions and 14 deletions
|
@ -24,9 +24,9 @@ Options:
|
||||||
--help Print usage
|
--help Print usage
|
||||||
```
|
```
|
||||||
|
|
||||||
The `docker pause` command suspends all processes in a container. On Linux,
|
The `docker pause` command suspends all processes in the specified containers.
|
||||||
this uses the cgroups freezer. Traditionally, when suspending a process the
|
On Linux, this uses the cgroups freezer. Traditionally, when suspending a process
|
||||||
`SIGSTOP` signal is used, which is observable by the process being suspended.
|
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,
|
With the cgroups freezer the process is unaware, and unable to capture,
|
||||||
that it is being suspended, and subsequently resumed. On Windows, only Hyper-V
|
that it is being suspended, and subsequently resumed. On Windows, only Hyper-V
|
||||||
containers can be paused.
|
containers can be paused.
|
||||||
|
@ -34,3 +34,7 @@ containers can be paused.
|
||||||
See the
|
See the
|
||||||
[cgroups freezer documentation](https://www.kernel.org/doc/Documentation/cgroup-v1/freezer-subsystem.txt)
|
[cgroups freezer documentation](https://www.kernel.org/doc/Documentation/cgroup-v1/freezer-subsystem.txt)
|
||||||
for further details.
|
for further details.
|
||||||
|
|
||||||
|
## Related information
|
||||||
|
|
||||||
|
* [unpause](unpause.md)
|
||||||
|
|
|
@ -24,9 +24,13 @@ Options:
|
||||||
--help Print usage
|
--help Print usage
|
||||||
```
|
```
|
||||||
|
|
||||||
The `docker unpause` command un-suspends all processes in a container.
|
The `docker unpause` command un-suspends all processes in the specified containers.
|
||||||
On Linux, it does this using the cgroups freezer.
|
On Linux, it does this using the cgroups freezer.
|
||||||
|
|
||||||
See the
|
See the
|
||||||
[cgroups freezer documentation](https://www.kernel.org/doc/Documentation/cgroup-v1/freezer-subsystem.txt)
|
[cgroups freezer documentation](https://www.kernel.org/doc/Documentation/cgroup-v1/freezer-subsystem.txt)
|
||||||
for further details.
|
for further details.
|
||||||
|
|
||||||
|
## Related information
|
||||||
|
|
||||||
|
* [pause](pause.md)
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
% Docker Community
|
% Docker Community
|
||||||
% JUNE 2014
|
% JUNE 2014
|
||||||
# NAME
|
# NAME
|
||||||
docker-pause - Pause all processes within a container
|
docker-pause - Pause all processes within one or more containers
|
||||||
|
|
||||||
# SYNOPSIS
|
# SYNOPSIS
|
||||||
**docker pause**
|
**docker pause**
|
||||||
|
@ -10,9 +10,9 @@ CONTAINER [CONTAINER...]
|
||||||
|
|
||||||
# DESCRIPTION
|
# DESCRIPTION
|
||||||
|
|
||||||
The `docker pause` command suspends all processes in a container. On Linux,
|
The `docker pause` command suspends all processes in the specified containers.
|
||||||
this uses the cgroups freezer. Traditionally, when suspending a process the
|
On Linux, this uses the cgroups freezer. Traditionally, when suspending a process
|
||||||
`SIGSTOP` signal is used, which is observable by the process being suspended.
|
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,
|
With the cgroups freezer the process is unaware, and unable to capture,
|
||||||
that it is being suspended, and subsequently resumed. On Windows, only Hyper-V
|
that it is being suspended, and subsequently resumed. On Windows, only Hyper-V
|
||||||
containers can be paused.
|
containers can be paused.
|
||||||
|
@ -22,10 +22,11 @@ See the [cgroups freezer documentation]
|
||||||
further details.
|
further details.
|
||||||
|
|
||||||
# OPTIONS
|
# OPTIONS
|
||||||
There are no available options.
|
**--help**
|
||||||
|
Print usage statement
|
||||||
|
|
||||||
# See also
|
# See also
|
||||||
**docker-unpause(1)** to unpause all processes within a container.
|
**docker-unpause(1)** to unpause all processes within one or more containers.
|
||||||
|
|
||||||
# HISTORY
|
# HISTORY
|
||||||
June 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>
|
June 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
% Docker Community
|
% Docker Community
|
||||||
% JUNE 2014
|
% JUNE 2014
|
||||||
# NAME
|
# NAME
|
||||||
docker-unpause - Unpause all processes within a container
|
docker-unpause - Unpause all processes within one or more containers
|
||||||
|
|
||||||
# SYNOPSIS
|
# SYNOPSIS
|
||||||
**docker unpause**
|
**docker unpause**
|
||||||
|
@ -10,7 +10,7 @@ CONTAINER [CONTAINER...]
|
||||||
|
|
||||||
# DESCRIPTION
|
# DESCRIPTION
|
||||||
|
|
||||||
The `docker unpause` command un-suspends all processes in a container.
|
The `docker unpause` command un-suspends all processes in the specified containers.
|
||||||
On Linux, it does this using the cgroups freezer.
|
On Linux, it does this using the cgroups freezer.
|
||||||
|
|
||||||
See the [cgroups freezer documentation]
|
See the [cgroups freezer documentation]
|
||||||
|
@ -18,10 +18,11 @@ See the [cgroups freezer documentation]
|
||||||
further details.
|
further details.
|
||||||
|
|
||||||
# OPTIONS
|
# OPTIONS
|
||||||
There are no available options.
|
**--help**
|
||||||
|
Print usage statement
|
||||||
|
|
||||||
# See also
|
# See also
|
||||||
**docker-pause(1)** to pause all processes within a container.
|
**docker-pause(1)** to pause all processes within one or more containers.
|
||||||
|
|
||||||
# HISTORY
|
# HISTORY
|
||||||
June 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>
|
June 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>
|
||||||
|
|
Loading…
Reference in a new issue