1、远程连接阿里云服务器
2、依次运行以下命令安装yum源
yum update
yum instaff epel-release -y
yum clean all
yum list
3、安装并运行docker
yum install docker-io -y
systemctl start docker
4、检查安装结果
docker info
5、启用docker
systemctl start docker #运行docker守护进程
systemctl stop docker #停止docker守护进程
systemctl restart docker #重启docker守护进程