仅供学习笔记记录
卸载老版本
yum remove docker docker-common container-selinux docker-selinux docker-engine
更新yum
yum update
安装 yum-utils,它提供了 yum-config-manager,可用来管理yum源
yum install -y yum-utils
添加yum源
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
更新索引
yum makecache fast
安装 docker-ce
yum install -y docker-ce
启动 docker
systemctl start docker
验证是否安装成功
docker info
安装docker-compose
1 安装epel源
yum install -y epel-release
2 安装docker-compose
标签:compose,ce,yum,install,docker,安装,Centos7.5 From: https://www.cnblogs.com/rtwo/p/17124795.htmlyum install -y docker-compose