Changes

m
Line 163: Line 163:  
=== Restoring Container ===
 
=== Restoring Container ===
   −
To restore a container from a checkpoint, specify the OCI image containing the checkpoint in the container's <code>image</code> field.
+
To restore a container from a checkpoint, specify the OCI image containing the checkpoint in the container's <code>image</code> field. When creating a container, CRI-O and containerd detect OCI images with a checkpoint annotation and, instead of a normal start, restore it from the checkpoint. The following example shows how the YAML file used above can be modified to restore the container from a checkpoint:
    
<pre>
 
<pre>
Line 176: Line 176:  
       image: quay.io/foo/bar:latest  # Replace with checkpoint image URI
 
       image: quay.io/foo/bar:latest  # Replace with checkpoint image URI
 
EOF
 
EOF
</pre>
     −
<pre>
   
kubectl apply -f restore-pod.yaml
 
kubectl apply -f restore-pod.yaml
 
</pre>
 
</pre>
  −
When creating a container, CRI-O and containerd detect OCI images with a checkpoint annotation and, instead of a normal start, restore it from the checkpoint.
 
509

edits