2017-10-13 157 views

回答

2

据泊坞窗documentation泊坞窗,撰写暂停命令做到这一点:

The docker pause command suspends all processes in the specified containers. 
On Linux, this uses the cgroups freezer. 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. On Windows, only Hyper-V containers can be paused. 
1

这是什么Docket docs说:

的码头工人暂停命令中止所有进程指定的容器。在Linux上,这使用cgroups冷冻机。传统上,在暂停进程时,会使用SIGSTOP信号,这可以通过暂停进程来观察。对于cgroups冷冻机,该过程不知道,无法捕获,它正在暂停,随后又恢复。在Windows上,只能暂停Hyper-V容器。

所以这意味着容器中的进程停止运行,并且它们能够稍后恢复。