Cedana
Cedana Daemon
Cedana
Cedana Daemon
  • Cedana Daemon
  • Get started
    • Installation
    • Authentication
    • Configuration
    • Health checks
    • Plugins
    • Feature matrix
  • Guides
    • Managed process/container
    • Checkpoint/restore basics
    • Checkpoint/restore with GPUs
    • Checkpoint/restore runc
    • Checkpoint/restore containerd
    • Checkpoint/restore streamer
    • Checkpoint/restore kata
      • how-to-create-custom-busybox-image
      • how-to-install-criu-in-guest
      • how-to-install-on-aws
      • how-to-make-kernel-criu-compatible
      • how-to-make-rootfs-criu-compatible
      • Checkpoint/Restore kata containers
  • Developer guides
    • Architecture
    • Profiling
    • Testing
    • Writing plugins
  • References
    • CLI
      • cedana
      • cedana attach
      • cedana checkpoint
      • cedana checkpoints
      • cedana completion
      • cedana completion bash
      • cedana completion fish
      • cedana completion powershell
      • cedana completion zsh
      • cedana daemon
      • cedana daemon check
      • cedana daemon start
      • cedana delete
      • cedana dump
      • cedana dump containerd
      • cedana dump job
      • cedana dump process
      • cedana dump runc
      • cedana exec
      • cedana features
      • cedana inspect
      • cedana job
      • cedana job attach
      • cedana job checkpoint
      • cedana job checkpoint inspect
      • cedana job checkpoint list
      • cedana job checkpoints
      • cedana job delete
      • cedana job inspect
      • cedana job kill
      • cedana job list
      • cedana jobs
      • cedana k8s-helper
      • cedana k8s-helper destroy
      • cedana kill
      • cedana manage
      • cedana manage containerd
      • cedana manage process
      • cedana manage runc
      • cedana plugin
      • cedana plugin features
      • cedana plugin install
      • cedana plugin list
      • cedana plugin remove
      • cedana plugins
      • cedana ps
      • cedana query
      • cedana query k8s
      • cedana query runc
      • cedana restore
      • cedana restore job
      • cedana restore process
      • cedana restore runc
      • cedana run
      • cedana run containerd
      • cedana run process
      • cedana run runc
    • API
    • GitHub
Powered by GitBook
On this page
  • Prerequisites
  • Basic
  • Managed
  • GPU support
  • Rootfs

Was this helpful?

Edit on GitHub
  1. Guides

Checkpoint/restore containerd

PreviousCheckpoint/restore runcNextCheckpoint/restore streamer

Last updated 2 months ago

Was this helpful?

Prerequisites

  1. Create an account with Cedana, to get access to the containerd plugin. See .

  2. Set the Cedana URL & authentication token in the .

  3. Install the containerd plugin with sudo cedana plugin install containerd.

  4. Ensure the daemon is running, see .

  5. Do a health check to ensure the plugin is ready, see .

Basic

  1. Run a new containerd container, for example:

sudo ctr run docker.io/library/nginx:latest <container_id>
  1. Checkpoint:

cedana dump containerd <container_id> --dir <dump-dir>
  1. Restore is currently WIP. However, you can restore this container as a runc container, see .

Managed

  1. Run a new managed containerd container:

cedana run containerd --attach --jid <job_id> --image docker.io/library/nginx:latest
  1. Checkpoint:

cedana dump job <job_id>
  1. Restore is currently WIP.

GPU support

  1. Run a new managed containerd container with GPU support:

cedana run containerd --attach --gpu-enabled --jid <job_id> --image docker.io/library/nginx:latest
  1. Checkpoint:

cedana dump job <job_id>
  1. Restore is currently WIP.

Rootfs

To include the rootfs in the checkpoint, additionally set the --image flag with a new image name. For example:

cedana dump containerd <container_id> --dir <dump-dir> --image <new-image-name>

For checkpoint only the rootfs, set the --rootfs-only flag. For example:

cedana dump containerd <container_id> --dir <dump-dir> --image <new-image-name> --rootfs-only

Just like for processes, as explained in , GPU support is also available for managed containerd containers.

For all available CLI options, see . Directly interacting with daemon is also possible through gRPC, see .

authentication
configuration
installation
health checks
checkpoint/restore runc
checkpoint/restore with GPUs
CLI reference
API reference