Installing Containerd with crictl - anavarrocloud/kubernetes GitHub Wiki

Apply Repo

dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

Install Containerd

dnf makecache
dnf install -y containerd.io

Backup PreInstalled Config

mv /etc/containerd/config.toml /etc/containerd/config.toml.orig

Ask Containerd for a Template

containerd config default > /etc/containerd/config.toml

Modify Config and Set SystemdCgroup = true

vim /etc/containerd/config.toml

Set Version variable for crictl

VERSION="v1.32.0" 

Download Crictl Binary Tarball

wget https://github.com/kubernetes-sigs/cri-tools/releases/download/$VERSION/crictl-$VERSION-linux-amd64.tar.gz

Extract Binary for Local User Execution

sudo tar zxvf crictl-$VERSION-linux-amd64.tar.gz -C /usr/local/bin

Delete Unneeded Tarball

rm -f crictl-$VERSION-linux-amd64.tar.gz

Config crictl settings

sudo vim /etc/crictl.yaml

With the Following

runtime-endpoint: unix:///run/containerd/containerd.sock
image-endpoint: unix:///run/containerd/containerd.sock
timeout: 2
debug: true

Enable Containerd Service upon Reboot with Systemd

systemctl enable --now containerd.service
⚠️ **GitHub.com Fallback** ⚠️