Error Codes Wiki

Linux containerd OCI Runtime Error — What It Means & How to Fix It

Errorkernel error

About Linux containerd OCI Runtime Error

Fix containerd OCI runtime errors when container creation fails due to incompatible runtime, cgroup configuration, or seccomp issues. This guide covers everything you need to know about this topic, including common causes, step-by-step solutions, and answers to frequently asked questions.

Here are the key things to understand: OCI (Open Container Initiative) runtime errors occur when containerd cannot create or start a container. The error message typically includes 'OCI runtime create failed' with details about the specific failure. Common in Kubernetes nodes, Docker hosts, and any system using containerd as the container runtime. These errors prevent pods from starting and can cause CrashLoopBackOff in Kubernetes. Understanding these fundamentals will help you diagnose and resolve this issue more effectively.

The most common reasons this occurs include: runc or crun binary is missing, corrupted, or incompatible version. cgroup v2 configuration issues on systems that recently migrated from cgroup v1. AppArmor or SELinux policy blocking the container runtime operations. Kernel too old to support required container features (user namespaces, overlay fs). Identifying the root cause is the first step toward finding the right solution.

To resolve this, follow these recommended steps: Check runc version compatibility: runc --version and compare with containerd requirements. Verify cgroup version: stat -fc %T /sys/fs/cgroup (cgroup2fs = v2, tmpfs = v1) and configure accordingly. Check containerd logs: journalctl -u containerd -f for detailed error messages. Test with a minimal container: ctr run --rm docker.io/library/alpine:latest test echo hello. If these steps do not resolve the issue, consider consulting additional resources or a qualified professional.

This article is part of our Linux Error Codes collection on Error Codes Wiki. We provide comprehensive, up-to-date information to help you find solutions quickly.

Quick Answer

How do I update runc?

Download the latest runc binary from the GitHub releases page: wget https://github.com/opencontainers/runc/releases/latest/... and install to /usr/local/sbin/runc. Ensure the version is compatible with your containerd version.

Overview

Fix containerd OCI runtime errors when container creation fails due to incompatible runtime, cgroup configuration, or seccomp issues.

Key Details

  • OCI (Open Container Initiative) runtime errors occur when containerd cannot create or start a container
  • The error message typically includes 'OCI runtime create failed' with details about the specific failure
  • Common in Kubernetes nodes, Docker hosts, and any system using containerd as the container runtime
  • These errors prevent pods from starting and can cause CrashLoopBackOff in Kubernetes

Common Causes

  • runc or crun binary is missing, corrupted, or incompatible version
  • cgroup v2 configuration issues on systems that recently migrated from cgroup v1
  • AppArmor or SELinux policy blocking the container runtime operations
  • Kernel too old to support required container features (user namespaces, overlay fs)

Steps

  1. 1Check runc version compatibility: runc --version and compare with containerd requirements
  2. 2Verify cgroup version: stat -fc %T /sys/fs/cgroup (cgroup2fs = v2, tmpfs = v1) and configure accordingly
  3. 3Check containerd logs: journalctl -u containerd -f for detailed error messages
  4. 4Test with a minimal container: ctr run --rm docker.io/library/alpine:latest test echo hello

Tags

containerdociruntimerunccgroupkubernetes

Related Items

More in Kernel Error

Frequently Asked Questions

Download the latest runc binary from the GitHub releases page: wget https://github.com/opencontainers/runc/releases/latest/... and install to /usr/local/sbin/runc. Ensure the version is compatible with your containerd version.