
Kubernetes can use Docker or containerd as its container runtime.
This post explains how to install containerd.
apt update
apt-get install -y apt-transport-https ca-certificates curl software-properties-common gnupg2 nfs-common
curl -fsSL [https://download.docker.com/linux/debian/gpg](https://download.docker.com/linux/debian/gpg) | apt-key add -
add-apt-repository "deb \[arch=amd64\] [https://download.docker.com/linux/debian](https://download.docker.com/linux/debian) $(lsb\_release -cs) stable"
apt-get update
apt-get install -y containerd.io=1.6.15-1
containerd config default > /etc/containerd/config.toml
cd /etc/containerd
sed -i 's/SystemdCgroup = false/SystemdCgroup = true/g' config.toml
cd /root
systemctl restart containerd
The "sed -i 's/SystemdCgroup = false/SystemdCgroup = true/g' config.toml" part
changes SystemdCgroup to true so that Kubernetes can recognize and use it.
Comments 0
A nickname and a password are required. The same password edits or deletes the comment later. Comments appear after a review.