1、启用 extras
仓库
sudo dnf config-manager --set-enabled PowerTools
sudo dnf config-manager --set-enabled extras
2、安装必要的软件包:
sudo dnf install https://download.docker.com/linux/centos/8/x86_64/stable/Packages/containerd.io-1.4.3-3.1.el8.x86_64.rpm
3、启动并使 containerd 在启动时自动运行:
sudo systemctl start containerd
sudo systemctl enable containerd
4、验证 containerd 是否正在运行:
sudo systemctl status containerd