1.安装docker
yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo -y
yum-config-manager --enable docker-ce-nightly -y
yum install docker-ce docker-ce-cli containerd.io -y
yum install docker-ce-19.03.4 docker-ce-cli-19.03.4 containerd.io -y
2.迁移存储路径
systemctl enable docker
systemctl start docker
systemctl stop docker
mv /var/lib/docker /data
cd /var/lib/ && ln -s /data/docker .
systemctl start docker