暂停docker容器

暂停docker容器,docker,docker-compose,Docker,Docker Compose,暂停容器意味着什么?特别是,暂停一个过程意味着什么 根据Docker,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 use

暂停容器意味着什么?特别是,暂停一个过程意味着什么

根据Docker,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.
根据Docker,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.
这就是我所说的:

docker pause命令挂起指定容器中的所有进程。在Linux上,它使用cgroups冻结器。传统上,当挂起一个进程时,使用SIGSTOP信号,被挂起的进程可以观察到该信号。使用cgroups冻结器,进程不知道并且无法捕获它正在被挂起,然后继续。在Windows上,只能暂停Hyper-V容器

因此,这意味着容器中的进程停止运行,并且可以在以后继续运行。

如下所示:

docker pause命令挂起指定容器中的所有进程。在Linux上,它使用cgroups冻结器。传统上,当挂起一个进程时,使用SIGSTOP信号,被挂起的进程可以观察到该信号。使用cgroups冻结器,进程不知道并且无法捕获它正在被挂起,然后继续。在Windows上,只能暂停Hyper-V容器

因此,这意味着容器中的进程停止运行,以后可以继续运行