Difference between revisions of "Containerd"

From CRIU
Jump to navigation Jump to search
m
Line 2: Line 2:
  
 
== Container Checkpoint/Restore ==
 
== Container Checkpoint/Restore ==
 +
 +
{{Note|<code>ctr</code> is unsupported debug and administrative client for interacting with the containerd daemon. The commands, options, and operations are not guaranteed to be backward compatible or stable from release to release of the containerd project.}}
  
 
Pull "ubuntu:latest" image if not already available locally.
 
Pull "ubuntu:latest" image if not already available locally.

Revision as of 09:26, 26 October 2021

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

Container Checkpoint/Restore

Note.svg Note: ctr is unsupported debug and administrative client for interacting with the containerd daemon. The commands, options, and operations are not guaranteed to be backward compatible or stable from release to release of the containerd project.

Pull "ubuntu:latest" image if not already available locally.

ctr image pull docker.io/library/ubuntu:latest

Create and run a container with ID "looper"

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