🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
``` #卸载旧版本 yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \ docker-logrotate \ docker-selinux \ docker-engine-selinux \ docker-engine #安装所需的包 yum install -y yum-utils \ device-mapper-persistent-data \ lvm2 #设置稳定存储库 # yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo #安装containerd yum install containerd.io systemctl daemon-reload systemctl restart containerd && systemctl enable containerd # 查看 containerd 版本 containerd --version # 查看 containerd 运行状态 sudo systemctl status containerd # 查看容器列表 ctr containers ls # 查看容器详细信息 ctr containers inspect <container-id> # 删除容器 ctr containers rm <container-id> ```