-
Install
yum-utils:
yum install -y yum-utils
-
Add Docker CE
Repository:
dnf config-manager --add-repo https://download.docker.com/linux/rhel/docker-ce.repo
-
Install
Containerd:
yum install -y containerd.io
-
Generate the Default Containerd Configuration
File:
containerd config default | tee /etc/containerd/config.toml >/dev/null 2>&1
-
Configure Containerd to Use the systemd Cgroup
Driver:
sed -i 's/SystemdCgroup = false/SystemdCgroup = true/g' /etc/containerd/config.toml
-
Restart the Containerd
Service:
systemctl restart containerd
systemctl status containerd --no-pager
systemctl enable containerd