首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >暂停docker容器

暂停docker容器
EN

Stack Overflow用户
提问于 2017-10-13 17:50:02
回答 2查看 1.3K关注 0票数 0

暂停容器是什么意思?尤其是,暂停进程是什么意思?

https://docs.docker.com/compose/reference/pause/

EN

回答 2

Stack Overflow用户

发布于 2017-10-13 18:21:30

根据Docker documentation,docker-compose pause命令执行以下操作:

代码语言:javascript
复制
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.
票数 2
EN

Stack Overflow用户

发布于 2017-10-13 18:23:09

以下是Docket docs所说的:

停靠暂停命令挂起指定容器中的所有进程。在Linux上,这使用cgroups freezer。传统上,当挂起一个进程时,使用SIGSTOP信号,该信号可以通过挂起的进程观察到。使用cgroups freezer,进程不知道并且无法捕获它正被挂起,然后又恢复了。在Windows上,只能暂停Hyper-V容器。

因此,这意味着容器中的进程停止运行,并且它们可以在稍后恢复。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/46727124

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档