#安装git sudo yum install -y git
#安装maven sudo yum install -y maven
#安装依赖 sudo yum install -y yum-utils device-mapper-persistent-data lvm2
#设置源 sudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
#下面的语法根据操作系统选一个版本
sudo yum makecache fast #CentOS7 语法sudo dnf makecache
#CentOS8 语法
#安装docker sudo yum install -y docker-ce
#启动服务 sudo systemctl start docker
#安装docker-compose curl -L https://github.com/docker/compose/releases/download/v2.17.1/docker-compose-linux-x86_64 > /usr/local/bin/docker-compose
#授权 sudo chmod +x /usr/local/bin/docker-compose
#检测版本号 docker-compose -v
标签:容器,compose,CentOS,sudo,yum,install,docker,安装 From: https://www.cnblogs.com/Bruce_H21/p/17553082.html