1、找到 /etc/containerd/config.toml root 字段那个目录把root = "/var/lib/containerd" 改成 root = "/containerd/data/containerd" 指定的目录,前提先创建要挂载的数据目录盘/containerd/data
2、迁移数据到指定目录
cp -rp /var/lib/containerd/* /containerd/data/containerd
3、重新加载,并重启服务
systemctl daemon-reload && systemctl restart containerd