Containerd

From CRIU
Revision as of 09:12, 26 October 2021 by Radostin (talk | contribs)
Jump to navigation Jump to search

This article describes the status of checkpoint/restore integration with containerd, and how to use it.

Container Checkpoint/Restore

Create a container with ID "looper" based on the "ubuntu:latest" image.

ctr image pull docker.io/library/ubuntu:latest
ctr run --runtime io.containerd.runc.v1 -d docker.io/library/ubuntu:latest looper /bin/sh -c 'i=0; while true; do echo $i; i=$(expr $i + 1); sleep 1; done'


Create container checkpoint

ctr c checkpoint --rw --task looper checkpoint/looper:20211011

Restore container from checkpoint

ctr c restore looper-1 checkpoint/looper:20211011