Choosing a Kubernetes container runtime: containerd or CRI-O for your nodes
If you are building or rebuilding self-managed nodes, you must pick a runtime that implements the Container Runtime Interface (CRI), and both containerd and CRI-O do. In practice the choice usually follows two things: the distribution you install and how cgroups are set up on your hosts. Decide those first. Docker Engine is no longer a kubelet runtime since dockershim was removed, so any node image or provisioning script that still assumes Docker needs to change before the cluster is built.
Start by checking which runtime your chosen distribution installs by default and whether you can swap it without losing vendor support. Then confirm the cgroup driver. The kubelet and the runtime must use the same driver, and on hosts running systemd that normally means systemd on both sides, set through SystemdCgroup in the containerd configuration or cgroupDriver in the kubelet configuration for CRI-O's counterpart settings. Mismatched drivers are a common cause of nodes that register but fail under load, so test one node before you template the rest.
Registry configuration differs between the two runtimes, and it matters most in air-gapped or mirrored environments. containerd reads per-registry host files through config_path, while CRI-O reads registries.conf. Whichever you choose, write mirror and credential settings into the node image rather than applying them by hand. Then confirm that the runtime version you ship is listed as supported for the Kubernetes minor version you target, using the Kubernetes releases page and your distribution's compatibility notes, because runtime upgrades run through the same node maintenance window as kubelet upgrades.
containerd versus CRI-O: how the two runtimes differ for your team
containerd is a general-purpose container runtime that many Kubernetes distributions and cloud node images use by default, so it has broad tooling, documentation and community knowledge behind it. Teams usually choose it when they want the runtime most of their engineers, vendors and troubleshooting guides already assume, and when they expect to run other container tools on the same hosts.
- Familiar tooling: Operators commonly use
crictlto inspect pods and images on a node, and containerd's own command-line tools for lower-level work. Confirm which of these your distribution installs. - Distribution defaults: Check whether your chosen distribution bundles containerd and which version it pins, because the runtime version is set by that distribution's release.
- Configuration files: Registry mirrors and runtime options live in containerd configuration, often managed by the distribution's tooling. Know who owns those files after installation.
- Upgrade coupling: Runtime patches arrive on their own schedule. Plan node maintenance so runtime and kubelet changes are tested together.
- Vendor confirmation: Ask your distribution vendor which containerd versions it supports and how it handles runtime security patches.
Before choosing containerd, confirm the supported containerd version range for your Kubernetes minor release with your distribution.
CRI-O is built specifically as an implementation of the Kubernetes Container Runtime Interface, and its versions are tied to Kubernetes minor releases. Teams often choose it when they run an OpenShift-style or distribution-managed stack where CRI-O is the supported default, or when they want a runtime whose scope is limited to what the kubelet needs.
- Version pairing: Each CRI-O minor version targets a matching Kubernetes minor version. Upgrading Kubernetes means upgrading CRI-O in the same plan, so build that into your upgrade runbook.
- Narrower scope: CRI-O does not aim to be a general container tool. Developers who run containers locally will use a different runtime, so plan the workflow split.
- Fewer generic guides: Community troubleshooting content is smaller than for containerd, so budget more time for internal runbooks and vendor support.
- Package sources: Confirm where your distribution gets CRI-O packages, and whether they are mirrored into your private repositories for air-gapped installs.
- Vendor confirmation: Ask which CRI-O version your distribution ships for each Kubernetes minor release and how long it supports it.
Before choosing CRI-O, confirm the version pairing and the package path with your distribution or vendor.
Whichever runtime you pick, your team owns its day-two life on every node: patching, configuration, registry access and troubleshooting. The work is similar in shape for both runtimes, but the specific files, commands and version pairings differ, so the operating model should be written down before the first cluster is built.
- Patch ownership: Decide whether the distribution, your platform team or a partner applies runtime security fixes, and how quickly.
- Configuration management: Store runtime configuration in the same version control and change process as other node settings.
- Registry access: Mirror and authentication settings must be set in the runtime for private registries, including air-gapped sites.
- Runbooks: Write node-level troubleshooting steps for image pulls, sandbox failures and cgroup errors for the runtime you chose.
- Skills: Identify which engineers can read runtime logs and change runtime configuration without relying on a single person.
Before building, document these responsibilities and confirm them in writing with your distribution or implementation partner.
The choice is easier to defend when it is tested against the same questions for each runtime. This tab lists the checks that matter across both options, and they should be answered before nodes are provisioned, not after the first failed upgrade.
- Distribution support: Confirm which runtime your distribution installs by default and whether it supports the alternative.
- Cgroup driver: Confirm that the runtime's cgroup driver matches the kubelet's setting on your node operating system.
- Registry mirrors: Test image pulls through your mirror or private registry on one node before the rollout.
- Upgrade path: Write the runtime version change into each Kubernetes minor upgrade plan.
- Exit path: Ask how you would change runtimes later, and what that would require on running nodes.
Before you commit, run a single-node test with your chosen runtime and confirm each answer with the distribution vendor.
Runtime and configuration options and when each fits
This table compares containerd and CRI-O on the points that shape day-two work: default distributions, where the cgroup driver and registry mirrors are configured, and how much vendor and team familiarity each brings. Cells that depend on the distribution are marked to confirm, so verify them against the distribution you plan to install before you decide.
| Decision point | containerd | CRI-O |
|---|---|---|
| Default runtime in distributions | Common default in many upstream and vendor installers, but confirm for your chosen distribution | Bundled by some OpenShift-style and Kubernetes-focused distributions, but confirm for your chosen distribution |
| cgroup driver setting | Set in the containerd config file so it matches the kubelet, typically systemd on current Linux distributions; confirm the kubelet setting | Set in CRI-O drop-in configuration so it matches the kubelet; confirm the expected value for your kubelet version |
| Registry mirror configuration path | Configured through the containerd registry host configuration directories; confirm the path your version reads | Configured through CRI-O registry configuration files that define mirrors and blocked registries; confirm the file layout for your version |
| Tooling familiarity for operators | Widely used outside Kubernetes, so many operators already know its CLI and troubleshooting steps | Mostly seen in Kubernetes-only platforms, so teams may need to learn its CLI and logs |
| Vendor and community support | Confirm support terms with your distribution vendor or with your own platform team | Confirm support terms with your distribution vendor, especially if the platform is supplied as a bundle |
| Fit for mixed-workload hosts | Suits clusters where nodes also run container tooling or build jobs that expect containerd | Suits clusters that want a runtime scoped tightly to the kubelet, where no other container tooling is expected |
Why the cgroup driver must match the kubelet
The kubelet and the container runtime on each node must use the same cgroup driver, the component that hands CPU and memory limits to the Linux kernel. When they disagree, each one manages the same resources through a different hierarchy. Pods can then show incorrect resource accounting, the kubelet can misreport node capacity, and nodes may go into repeated NotReady states under load. These failures often appear only after a node has been running for a while, so a mismatch can pass initial testing and still cause instability in production.
Check both sides on every node before joining it to a cluster. On the kubelet side, look for cgroupDriver in the KubeletConfiguration file, which kubeadm typically writes under /var/lib/kubelet/config.yaml. On the runtime side, check SystemdCgroup in the containerd configuration file, usually /etc/containerd/config.toml, or the cgroup_manager setting in CRI-O's configuration. Distributions and installers may set these values differently, so confirm the effective values on a running node rather than relying on the defaults in the installer's documentation. Use systemd as the driver on both sides when the host runs systemd, and record the choice in your build standard so every node is configured the same way.
Cgroup v2 support is a prerequisite that ties this check to node preparation. The kernel, the init system and the runtime must all support the cgroup version the kubelet expects, so confirm the host's cgroup mode before you set the driver. The kernel and cgroup prerequisites are covered in Preparing Linux nodes for Kubernetes, and the minimum versions for your target Kubernetes release should be confirmed against the official release notes for that version before you build the image.
What kubeadm, RKE2, K3s, Talos and Kubespray bundle by default
Each installer or distribution either sets a container runtime for the nodes it builds or expects you to supply one, and that choice determines what you configure before the first node joins. The cards below name what to confirm for each, including whether the runtime can be changed at install time. Verify every default in the current documentation and release notes for the version you plan to install.
kubeadm (upstream tooling)
kubeadm bootstraps the control plane and joins nodes, but the container runtime is a prerequisite you install on each node from your own package source. Your choice therefore follows from your package repositories and your node image. Confirm which runtime packages your repository supplies, and confirm that the kubelet cgroup driver setting matches the runtime's cgroup driver for your Kubernetes version. Check the kubeadm reference for the configuration fields that apply to your release.
kubeadm init docsRKE2 (hardened distribution)
RKE2 ships a bundled containerd runtime as part of the distribution, so the runtime version is tied to the RKE2 release you install. Confirm in the release notes for your version which containerd build is included and whether any runtime settings are exposed through the RKE2 configuration file. Also confirm how registry mirror configuration is supplied for air-gapped installs, since that setting depends on the bundled runtime.
K3s (lightweight distribution)
K3s includes a bundled containerd runtime in its single binary, which keeps node preparation short on small hardware. Confirm the bundled containerd version for your K3s release and whether the runtime can be replaced with an external one for your environment. Check where the runtime stores images and how it reads registry configuration, because edge sites often depend on those paths during disconnected operation.
Talos Linux (immutable nodes)
Talos builds the runtime into its OS image, and you cannot install a different runtime on a running node through a shell because Talos offers no shell access. The runtime is set through the machine configuration that you apply to each node. Confirm which runtime the Talos release you plan to use ships, and confirm which machine configuration fields control registry mirrors and runtime settings. Plan these values before provisioning, since changing them later is a node configuration change.
Kubespray (Ansible-based installer)
Kubespray uses Ansible variables to select the container runtime during installation, and the default value is defined in its inventory defaults for each release. Confirm the default in the group variables for your Kubespray version, and confirm which runtime options that version supports. Also confirm the registry mirror variables, since Kubespray applies them to the runtime it installs and they must match your private registry layout.
How to set up and verify the runtime on your nodes
This sequence takes a node from an unconfigured host to one where the kubelet and the chosen runtime agree on cgroups, pull images through your registry path, and run a test workload. Each step ends with a check you can record before the node joins the cluster.
Confirm the runtime decision for each node pool
Your platform team records which runtime each node pool will use, whether containerd or CRI-O, and which distribution or installer sets it up. If you use kubeadm, the runtime is your choice and must be installed separately. If you use RKE2 or K3s, confirm the bundled runtime in the distribution documentation before installing anything else. Done means a written decision per node pool, with the runtime version pinned to match the Kubernetes minor version you plan to run. Confirm the pairing with your distribution's support matrix, since the runtime and Kubernetes minor versions must match.
Install the runtime and set the cgroup driver
The platform engineer installs the chosen runtime from your package source and sets its cgroup driver to systemd on hosts running systemd, which matches the kubelet default on most current installers. Edit the runtime configuration file, containerd's config.toml or CRI-O's configuration, and confirm the setting reads SystemdCgroup or cgroup_manager as your distribution expects. Also confirm the kubelet configuration uses the same driver. Done means the runtime service starts cleanly and a configuration dump shows the systemd driver, with no mismatch against the kubelet.
Align the kubelet and runtime cgroup driver
The platform engineer sets cgroupDriver in the kubelet configuration to the same value as the runtime, then restarts the kubelet. A mismatch between the two is a common reason nodes fail to become Ready, so this check is the most important one in the sequence. Confirm the host uses cgroup v2 before you finalize the setting, as the node preparation work requires. Done means the kubelet logs show no cgroup driver warnings and the runtime and kubelet report the same driver.
Configure registry mirrors and private registry trust
The platform engineer adds registry mirror entries for the upstream registries your workloads use, pointing them at your internal registry or pull-through cache, and installs the internal certificate authority into the host trust store that the runtime reads. Mirror and trust settings belong in the runtime configuration, not in individual pod specs, so every node resolves images the same way. Test with a pull of one public image through the mirror and one private image with registry credentials. Done means both pulls succeed from the node itself using the runtime's command-line tool, and the pull logs show the mirror path.
Prepare images for air-gapped pulls
In environments without internet access, the platform engineer lists the control plane images with kubeadm config images list, pulls them with kubeadm config images pull, and pushes them to the private registry. The kubeadm init command then points to that registry using the image repository option. Pull the pause image and the CNI and ingress images your installer needs as well. Confirm the list matches the Kubernetes version you are installing, since the image tags change between minor releases. Done means every image in the list exists in the private registry with the expected tags and the node can pull them without outbound access.
Verify node status after the kubelet joins
After the node joins the cluster, the platform engineer checks that the node reports Ready in the cluster, that the node's container runtime field shows the expected runtime and version, and that the kubelet has no cgroup or image pull errors in its logs. A node that reports NotReady often points to the network plugin not yet installed, so separate that cause before changing runtime settings. Done means kubectl describe on the node shows Ready status, the expected runtime, and no pressure or runtime conditions.
Run a test pod against the private registry
The platform engineer schedules a short test pod pinned to the new node that pulls an image from your private registry and runs a simple command. Use a pod with explicit resource limits and a Pod Security Standards level your namespace enforces, so the test reflects production settings. Watch the pod reach Running and then Completed, and check the events for the pull source. Done means the pod completes with the image pulled from your registry path, and you delete the test pod afterward and record the result with the node's runtime version.
How the kubelet, runtime and registry mirror fit together
The kubelet never pulls images itself. It calls the CRI runtime over a local socket, and the runtime resolves each image through a registry mirror or private registry before starting containers in cgroups. The cgroup driver must match on both sides, so this path is the first thing to check after installing a runtime. Verify it on each node by confirming the runtime's cgroup setting, the kubelet's cgroupDriver and a successful test pull from the mirror.
Request path from kubelet to runtime, registry mirror and the shared cgroup setting.
What the dockershim removal changes for existing nodes
Nodes that still use Docker Engine as their kubelet runtime must move to a CRI runtime such as containerd or CRI-O before they can run on a Kubernetes release that no longer includes dockershim. The kubelet no longer talks to Docker directly, so an in-place upgrade does not keep the old path alive. Start with an inventory of every node, recording its operating system, its current runtime from the node's container runtime field, its kubelet version and the distribution or installer that built it. Nodes that were provisioned by a managed or distribution tool may already have a CRI runtime, so confirm each node individually rather than assuming the whole fleet matches. The confirm step is to ask the vendor or installer which runtime the current release bundles for your version.
The harder work is in the workloads, not the nodes. Search manifests, Helm charts and CI pipelines for mounts of the Docker socket, usually /var/run/docker.sock, and for pods that run Docker-in-Docker builds, call the Docker CLI, or rely on Docker-specific behavior such as particular log file formats, image build caches or the docker user namespace. Those workloads will fail or behave differently on containerd or CRI-O because neither runtime exposes a Docker API. Image builds usually move to a daemonless builder that runs inside the cluster. Plan rebuilds node pool by node pool, drain each one, confirm that workloads recover on the new runtime, and keep a rollback path, such as an old node pool, until the first cluster upgrade passes.
Security and operational considerations for the runtime
The container runtime sits between the kubelet and every container image on a node, so its access, credentials, registry trust and patching affect the whole cluster. The cards below cover the controls to decide and verify whatever runtime you pick.
Restrict access to the runtime socket
Anyone who can write to the containerd or CRI-O socket can start privileged containers on that node, bypassing Kubernetes admission controls. Confirm that the socket file is owned by root with restrictive permissions, that no workload mounts it through a hostPath volume, and that node SSH access is limited to named administrators. Pod Security Standards at the Baseline and Restricted levels help block the hostPath mounts that would expose the socket to pods.
Pod Security StandardsImage pull credentials and secrets
Registry credentials for private images are stored on the node or in Kubernetes Secrets, and the runtime reads them when it pulls. Ask who owns these credentials, how they rotate, and whether they are scoped to read-only pull access. Kubernetes Secrets are stored unencrypted in etcd by default, so confirm encryption at rest is enabled and that list and watch access on Secrets is restricted.
Secrets good practicesRegistry mirror trust and TLS
A registry mirror configured for containerd or CRI-O becomes part of the image supply chain, so a compromised or misconfigured mirror can serve altered images. Verify that each mirror endpoint uses TLS with certificates issued by your internal CA, that the trust store on every node matches, and that mirror fallback behavior is documented. Test a deliberately unreachable mirror to confirm nodes fail closed rather than pulling from an unexpected source.
Patch cadence for the runtime package
The runtime is a separate package from the kubelet, so it can fall behind on security fixes even when Kubernetes itself is current. Set a written patch window for containerd or CRI-O on every node pool, and confirm the runtime version stays within what your chosen Kubernetes minor version supports. Upgrade the runtime with the same drain and cordon steps used for kubelet upgrades, and record the version on each node.
Version skew policyNode image hardening
Runtime defaults on a fresh node image decide how much an attacker gains from a container escape. Review the runtime's default seccomp profile, whether user namespaces are enabled where your distribution supports them, and whether the node OS applies its own benchmark profile. Ask your distribution vendor or platform team which of these settings ship by default and which you must set yourself.
Audit runtime configuration
Runtime configuration files, such as the containerd config or CRI-O drop-ins, drift over time when engineers edit nodes by hand. Check the cgroup driver, registry settings and runtime handlers against your build baseline on a schedule, and compare results across nodes. Use the CIS Kubernetes Benchmark as a reference for which settings to review, and treat any node that differs from the baseline as a finding to fix or rebuild.
CIS Kubernetes BenchmarkQuestions teams ask before choosing a runtime
Is containerd or CRI-O better for Kubernetes nodes?
Neither runtime is better for every cluster, and both can run a conformant Kubernetes cluster. Both implement the Container Runtime Interface that the kubelet calls, and the CNCF conformance program checks that certified distributions support the required Kubernetes APIs. The practical deciding factor is what your distribution or installer bundles and supports. That default sets the upgrade path, the source of security patches and the troubleshooting guidance your vendor provides. CRI-O is closely associated with OpenShift, so teams that run OpenShift often standardize on it. Ask your distribution vendor which runtime it ships, which versions it tests and how it handles runtime upgrades, then choose based on that support position and your team's experience.
Can Docker still be used as a container runtime on Kubernetes nodes?
Docker Engine is no longer a node runtime for Kubernetes. The kubelet dropped the dockershim component, so it now talks to containerd or CRI-O directly through the Container Runtime Interface. Container images built with Docker still run, because they follow the OCI image format that both runtimes support. Your developers can keep building images with Docker or other OCI-compatible tools. The change matters for node operations: any scripts that call the Docker CLI on nodes, and any monitoring that reads Docker daemon metrics, need to be rewritten for the new runtime. Confirm the exact removal release in the Kubernetes release notes for the version you are running.
What does migrating existing nodes to a different runtime involve?
Migrating nodes is a node-by-node change, not a cluster rebuild. The usual sequence is to inventory every node's runtime, kubelet version and kernel settings, then cordon and drain one node so its workloads move elsewhere. Next, install the new runtime, align its cgroup driver with the kubelet, apply registry mirror configuration, restart the kubelet, uncordon the node and check that pods start and that node status is Ready. Repeat for each node pool. Stateful workloads with single replicas need a planned window or a second replica, and PodDisruptionBudgets must allow the drain. Confirm each step against your distribution's documentation, because some installers manage the runtime for you.
How much effort does a runtime change take and what drives it?
The effort depends mostly on how many nodes you have, how much of the node setup is already automated, and how many workloads cannot tolerate a restart. A cluster built by an installer that manages the runtime is a different job from hand-built nodes with custom configuration. Registry mirrors, private certificate authorities and proxy settings add testing work because each one must be reproduced in the new runtime. Plan for a non-production cluster that matches production, a rollback path for each node pool and a verification checklist. When you request a quote, ask for scope by node pool, the test environments included, the disruption windows you must respect and what documentation and handover the work produces. This sets the price and schedule.
Can our own team change the container runtime without outside help?
A capable Linux and Kubernetes operations team can make the change internally, provided it has time for testing and a clear rollback path. The work needs skills in systemd, kubelet configuration, container runtime configuration and cluster troubleshooting. The most common mistakes are a cgroup driver mismatch, missed registry mirror settings and drains blocked by disruption budgets. If your team lacks one of these skills, or if the cluster carries regulated or customer-facing workloads that cannot tolerate surprises, a fixed-scope engagement can cover planning, implementation, verification and documentation. DeployOpen plans, implements, hardens and documents self-hosted platforms in your own infrastructure, so the work stays under your control after handover.
What does a cgroup driver mismatch break on a node?
A cgroup driver mismatch occurs when the kubelet and the container runtime manage resources through different cgroup drivers. The kubelet expects the runtime to match its own setting, and when they disagree, nodes can report unhealthy, pods can fail to start, and resource limits may not behave as expected. The kubelet setting is cgroupDriver in its configuration file. In containerd, the matching setting is SystemdCgroup under the runc options in the containerd configuration. CRI-O uses cgroup_manager in its configuration. Choose the driver your host init system and distribution recommend, set both sides to the same value, and confirm that the node reports Ready and that a test pod with resource limits runs correctly before moving to the next node.
How do registry mirrors get configured for air-gapped nodes?
Registry mirrors are configured in the runtime, and each runtime uses its own file format. Containerd reads per-registry host files under its certificate directory, where you can define a mirror endpoint and its trust settings for each upstream registry. CRI-O reads registry definitions from its registries configuration file. Control plane images are a separate step: kubeadm can list and pull them, and its --image-repository option points the installation at a private registry. Plan the mirror catalog, the TLS certificates that nodes must trust, the credentials used for pulls and how base images are updated. Test a pull from an isolated node before the cluster is built, and check the exact keys against your runtime's current documentation.
How DeployOpen scopes runtime and node work
DeployOpen fixes the runtime decision in writing before any node is touched. The scope starts with an inventory: every cluster, its distribution (kubeadm, RKE2, K3s, Talos, Kubespray or Cluster API), its Kubernetes minor version, the operating system and kernel on each node, and whether the environment is connected or air-gapped. That inventory determines which runtime choices are real options. A distribution that already bundles containerd leaves little to decide, while a kubeadm build on a fleet of mixed hosts needs an explicit answer for each one. The written scope records the chosen runtime, the cgroup driver that must match the kubelet, and the reason for each.
The second part of the scope covers the registry mirror design. DeployOpen lists every image source the nodes pull from, including control plane images, CNI and storage images, and the mirror or private registry that serves them. For a disconnected network, the scope names the mirror layout, the certificate trust chain for each registry endpoint, and the pull credentials and where they are stored. It also records how kubeadm will be pointed at the private registry if that path applies. Each of these items becomes a named deliverable with an owner, so a missed image source is caught before cluster bring-up instead of during an outage.
Verification and handover are written into the scope as well. Acceptance checks typically include confirming the runtime and kubelet cgroup driver on every node, a test pull through each mirror, a failed-pull check with the expected error, and a documented procedure for adding a node. Engagements are fixed-scope: deliverables, the acceptance criteria and the timeline are agreed in writing before work starts, and a quote follows from that written scope. Ask for a quote that separates the one-time build from any recurring work. Ongoing support, upgrades and continuous testing are available as a retainer, which suits teams that will change runtime versions or add nodes after handover.

