我可以暂停然后恢复Docker容器吗? [英] Can I suspend and then resume a Docker container?

查看:278
本文介绍了我可以暂停然后恢复Docker容器吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想暂停Docker容器并稍后恢复。如何才能做到这一点?
通过挂起,我的意思是它应该保存正在进行的过程的状态(例如,视频编码),然后随时恢复它。

I would like to suspend a Docker container and resume later. How can this be done? By suspending I mean that it should save the state of ongoing process (e.g. video encoding) and then resume it back at any time.

推荐答案

截至版本0.12.0 ,Docker支持 PAUSE UNPAUSE 命令来使用cgroup Freezer暂停和恢复容器。

As of Version 0.12.0, Docker supports PAUSE and UNPAUSE commands to pause and resume containers using cgroup freezer.

这篇关于我可以暂停然后恢复Docker容器吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆