yum install -y yum-utils2、设置阿里云镜像
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo3、更新yum软件包索引
yum makecache fast4、安装docker
yum install docker-ce docker-ce-cli containerd.io5、启动docker
systemctl start docker6、查看docker是否安装成功
docker version7、运行hello-world
docker run hello-world



