Difference between revisions of "Containerd"

From CRIU
Jump to navigation Jump to search
m
Line 5: Line 5:
 
{{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.}}
 
{{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.
+
Download "ubuntu:latest" image if not already available locally.
  
 
  ctr image pull docker.io/library/redis:alpine
 
  ctr image pull docker.io/library/redis:alpine

Revision as of 15:43, 16 March 2023

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.

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

ctr image pull docker.io/library/redis:alpine

Create and run a container with ID "looper"

ctr run -d docker.io/library/redis:alpine redis

Create container checkpoint

ctr c checkpoint --rw --task redis checkpoint/redis:cr-1

Show information about the new checkpoint image registered with containerd

ctr images ls 'name==checkpoint/redis:cr-1'

Restore container from checkpoint

ctr c restore --rw --live redis-debug checkpoint/redis:cr-1