forked from aqzt/kjyw
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
33 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
## 自动安装docker-compose 2020-05-31 | ||
## 有问题反馈 https://aq2.cn/c/docker | ||
## email: [email protected] | ||
## robert yu | ||
## redhat 7 | ||
|
||
## 版本发布地址:https://github.com/docker/compose/releases | ||
## https://github.com/docker/compose/releases/download/1.25.5/docker-compose-Linux-x86_64 | ||
## https://github.com/docker/compose/releases/download/1.25.4/docker-compose-Linux-x86_64 | ||
##安装 | ||
##curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose | ||
curl -L https://github.com/docker/compose/releases/download/1.25.5/docker-compose-Linux-x86_64 -o /usr/local/bin/docker-compose | ||
|
||
##2. 添加执行权限 | ||
chmod +x /usr/local/bin/docker-compose | ||
|
||
##3. 命令补全工具(此步骤可选) | ||
##curl -L https://raw.githubusercontent.com/docker/compose/1.21.2/contrib/completion/bash/docker-compose -o /etc/bash_completion.d/docker-compose | ||
##具体参考:https://docs.docker.com/compose/completion/ | ||
|
||
##4. 测试安装结果 | ||
docker-compose --version |