Changes

498 bytes added ,  9 October
m
no edit summary
Line 24: Line 24:  
# Show running containers
 
# Show running containers
 
sudo runc list
 
sudo runc list
 +
sudo runc state looper
 +
</pre>
 +
 +
Now the container can be checkpointed:
 +
 +
<pre>
 +
mkdir /tmp/checkpoint
 +
sudo runc checkpoint --image-path /tmp/checkpoint --work-path /tmp/checkpoint looper
 +
</pre>
 +
 +
Once the container is checkpointed it will be no longer visible in <code>runc list</code>.
 +
 +
The following command can be used to restore the container:
 +
 +
<pre>
 +
sudo runc restore --image-path /tmp/checkpoint --work-path /tmp/checkpoint looper
 +
 +
# Show running containers
 +
sudo runc list
 +
sudo runc state looper
 
</pre>
 
</pre>
509

edits