Changes

Jump to navigation Jump to search
m
Line 147: Line 147:  
== Restoring a Checkpointed Container within Kubernetes ==
 
== Restoring a Checkpointed Container within Kubernetes ==
   −
To restore a checkpointed container in Kubernetes it is necessary to convert the checkpoint archive into an image that can be pushed to a registry.
+
To restore a checkpointed container in Kubernetes it is necessary to convert the checkpoint archive into an OCI image that can be pushed to a registry.
 +
 
 +
=== Creating an OCI Image from a Checkpoint ===
 +
 
 +
The <code>checkpointctl build</code> command creates an OCI image from a checkpoint archive. It extracts container metadata from the checkpoint and uses [https://github.com/containers/buildah Buildah] to create an annotated image so the container runtime recognizes that it contains a checkpoint.
 +
<pre>
 +
checkpointctl build checkpoint.tar quay.io/foo/bar:latest
 +
</pre>
 +
 
 +
Once the image has been created, it can be pushed to a container registry:
 +
<pre>
 +
buildah push quay.io/foo/bar:latest
 +
</pre>
509

edits

Navigation menu