docker-compose安装,两种方式:
1. 第一种方式:
(1)下载指定版本的docker-compose (https://github.com/docker/compose/releases)
$ curl -L https://github.com/docker/compose/releases/download/1.21.0/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
(2)对二进制文件赋可执行权限
$ chmod +x /usr/local/bin/docker-compose
(3)测试下docker-compose是否安装成功
$ docker-compose --version 如果出现版本信息,则表示安装成功
2. 第二种方式:
(1)pip3 install docker-compose
来源:oschina
链接:https://my.oschina.net/forkey/blog/4815976