Difference between revisions of "Containerd"
Jump to navigation
Jump to search
m |
m |
||
Line 5: | Line 5: | ||
Create a container with ID "looper" based on the "ubuntu:latest" image. | Create a container with ID "looper" based on the "ubuntu:latest" image. | ||
+ | ctr image pull docker.io/library/ubuntu:latest | ||
ctr run -d docker.io/library/ubuntu:latest looper /bin/sh -c 'i=0; while true; do echo $i; i=$(expr $i + 1); sleep 1; done' | ctr run -d docker.io/library/ubuntu:latest looper /bin/sh -c 'i=0; while true; do echo $i; i=$(expr $i + 1); sleep 1; done' | ||
− | ctr task kill -s | + | ctr containers checkpoint looper cr0 |
− | ctr task rm | + | |
+ | ctr task kill -s SIGKILL looper | ||
+ | ctr task rm looper | ||
ctr containers rm looper | ctr containers rm looper |
Revision as of 19:05, 17 October 2021
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 -d docker.io/library/ubuntu:latest looper /bin/sh -c 'i=0; while true; do echo $i; i=$(expr $i + 1); sleep 1; done'
ctr containers checkpoint looper cr0
ctr task kill -s SIGKILL looper ctr task rm looper
ctr containers rm looper