-
Notifications
You must be signed in to change notification settings - Fork 150
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
3 changed files
with
38 additions
and
6 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,22 @@ | ||
# Ubuntu系统 docker-compose安装 | ||
|
||
## 下载docker-compose | ||
```bash | ||
sudo curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose | ||
``` | ||
|
||
## 设置可执行权限 | ||
```bash | ||
sudo chmod +x /usr/local/bin/docker-compose | ||
``` | ||
|
||
## 检查是否安装成功 | ||
```bash | ||
docker-compose --version | ||
``` | ||
|
||
这将打印出我们安装的版本: | ||
```bash | ||
root@VM-4-5-ubuntu:/home/ubuntu# docker-compose --version | ||
docker-compose version 1.21.2, build a133471 | ||
``` |
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