CentOS7安装docker和docker-compose使用yum安装docker启动设置为开机自启动下载docker-compose添加可执行权限(这里不懂可以看一下菜鸟教程-linux教程-文件权限)查看docker-compose版本
1.安装docker使用yum安装dockeryum -y install docker启动systemctl start docker.service设置为开机自启动systemctl enable docker.service2.安装docker-compose下载docker-composesudo curl -L “https://github.com/docker/compose/releases/download/1.23.2/docker-compose-(uname−s)−