2017-10-13 153 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容器。

所以這意味着容器中的進程停止運行,並且它們能夠稍後恢復。