Difference between revisions of "Containerd"
Jump to navigation
Jump to search
Line 7: | Line 7: | ||
Pull "ubuntu:latest" image if not already available locally. | Pull "ubuntu:latest" image if not already available locally. | ||
− | ctr image pull docker.io/library/ | + | ctr image pull docker.io/library/redis:alpine |
Create and run a container with ID "looper" | Create and run a container with ID "looper" | ||
− | ctr run --runtime io.containerd.runc.v1 -d docker.io/library/ | + | ctr run --runtime io.containerd.runc.v1 -d docker.io/library/redis:alpine redis |
− | |||
Create container checkpoint | Create container checkpoint | ||
− | ctr c checkpoint --rw --task | + | ctr c checkpoint --rw --task redis checkpoint/redis:20211011 |
Restore container from checkpoint | Restore container from checkpoint | ||
− | ctr c restore | + | ctr c restore redis-debug checkpoint/redis:20211011 |
Revision as of 09:28, 26 October 2021
This article describes the status of checkpoint/restore integration with containerd, and how to use it.
Container Checkpoint/Restore
Pull "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 --runtime io.containerd.runc.v1 -d docker.io/library/redis:alpine redis
Create container checkpoint
ctr c checkpoint --rw --task redis checkpoint/redis:20211011
Restore container from checkpoint
ctr c restore redis-debug checkpoint/redis:20211011