1. 一条命令安装docker-compose
下载地址: https://github.com/docker/compose/releases
sudo curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
2. 将下载好的docker-compose命令上传到:/usr/local/sbin/目录下,并增加执行权限
mv docker-compose /usr/local/sbin/
cd /usr/local/sbin/
chmod +x docker-compose
查看docker-compose版本信息
[root@localhost ~]# docker-compose -v
docker-compose version 1.26.2, build eefe0d31
[root@localhost ~]#