Search code examples
dockercontainers

Can I suspend and then resume a Docker container?


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.


Solution

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