Docker Checkpoint and Recovery

Caveat

CRiU was still an experiment feature whilst the script was created. The state may have changed, please check its official website for more detail.

Migration Steps

Please refer to the link[1] for the actual commands.

  1. Create a snapshot

  2. Copy the checkpointed dir to the destination host dir

  3. Create a new docker container in the destination host

  4. Restore the container

An Example

Please refer to the link[2] for the detail commands applied.

  1. Build docker

  2. Start a container

  3. Restore container locally

References

[1]. Steps

[2]. An Example