linux下安装docker的五部曲:
1.安装一些必要的系统工具
yum install -y yum-utils device-mapper-persistent-data lvm2
2.加软件源信息
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
3.安装 Docker-ce
yum -y install docker-ce
4.启动 Docker 后台服务
systemctl start docker
5.测试验证 测试运行 hello-world
docker run hello-world