1.卸载旧版本 yum remove -y docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-selinux docker-engine-selinux docker-engine 2.更新Yum包 yum update -y 3.安装依赖环境 yum install -y yum-utils device-mapper-persi…