docker安装
# 需要的安装包:
yum install -y yum-utils
# 设置镜像仓库(此处选择阿里云):
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
# 更新yml软件包索引
yum makecache fast
# 安装docker相关内容 (docker-ce 社区 ee企业版)
yum install -y docker-ce docker-ce-cli containerd.io
# 启动docker:
systemctl start docker
# 可查看docker版本
docker version
# 测试hello-world:
docker run hello-world
docker images
ref: https://blog.csdn.net/fy512/article/details/122668330