gpt4 book ai didi

docker - 暂停Docker容器

转载 作者:行者123 更新时间:2023-12-02 20:48:33 25 4
gpt4 key购买 nike

暂停容器是什么意思?特别是,暂停进程意味着什么?

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

最佳答案

根据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.

关于docker - 暂停Docker容器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46727124/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com