暂停容器是什么意思?尤其是,暂停进程是什么意思?
发布于 2017-10-13 18:21:30
根据Docker documentation,docker-compose pause命令执行以下操作:
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.发布于 2017-10-13 18:23:09
以下是Docket docs所说的:
停靠暂停命令挂起指定容器中的所有进程。在Linux上,这使用cgroups freezer。传统上,当挂起一个进程时,使用SIGSTOP信号,该信号可以通过挂起的进程观察到。使用cgroups freezer,进程不知道并且无法捕获它正被挂起,然后又恢复了。在Windows上,只能暂停Hyper-V容器。
因此,这意味着容器中的进程停止运行,并且它们可以在稍后恢复。
https://stackoverflow.com/questions/46727124
复制相似问题