安装方式一:

1. 拉取docker-compose

curl -L https://github.com/docker/compose/releases/download/1.23.0-rc3/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose

2. 给docker-compose添加可执行权限

chmod +x /usr/local/bin/docker-compose

安装方式二:

1. 拉取docker-compose

wget https://github.com/docker/compose/releases/download/1.23.0-rc3/docker-compose-Linux-x86_64

2.将docker-compose移动至系统执行目录中

mv docker-compose-Linux-x86_64 /usr/local/bin/docker-compose

3. 给docker-compose添加可执行权限

chmod +x /usr/local/bin/docker-compose

查看docker-compose版本

docker-compose --version

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐