crun

crun is an OCI container runtime that is written in C. A drop-in replacement for runC, the MCR default container runtime, crun has a smaller binary size, can be faster than runC, and requires less memory.

Install crun

Note

Though it is not installed by default, crun is available through the Mirantis package repository that you use to install MCR.

Once you have added your Mirantis repository, run the crun-ee package.

To install crun on an Ubuntu distro:

sudo apt-get install crun-ee

To install crun on an RHEL distro:

sudo dnf install crun-ee

Configure crun

To set crun as your container runtime, edit the configuration file as follows:

{
  "runtimes": {
    "crun": {
      "path": "/usr/bin/crun"
    }
  }
}

Once crun is configured, you can start containers with crun as the runtime argument:

docker run --runtime crun hello-world

For detailed crun use information, refer to the official crun documentation.