一、简介
- 本文主要介绍docker-compose的安装;
二、安装
2.1 下载jar包
- 最新版本可以通过 https://github.com/docker/compose/releases 来查看,目前最新版本为v2.0.1,下载即可
sudo curl -L "https://github.com/docker/compose/releases/download/1.23.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
2.2 创建docker-compose目录并上传文件下载的文件并重命名
`
mkdir -p /usr/local/env/docker/docker-compose
cd /usr/local/env/docker/docker-compose
mv docker-compose-linux-x86_64 docker-compose
`
2.3 添加权限
sudo chmod +X /usr/local/env/docker/docker-compose/docker-compose