Changes

Jump to navigation Jump to search
35 bytes added ,  09:13, 26 October 2021
m
no edit summary
Line 3: Line 3:  
== Container Checkpoint/Restore ==
 
== Container Checkpoint/Restore ==
   −
Create a container with ID "looper" based on the "ubuntu:latest" image.
+
Pull "ubuntu:latest" image if not already available locally.
    
  ctr image pull docker.io/library/ubuntu:latest
 
  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'
 
  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'
  
277

edits

Navigation menu