Skip to content

Commit e8f6074

Browse files
committed
feat(docker): add docker compose cli-plugin
1 parent 1ef8b0d commit e8f6074

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

Docker/docker-compose.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
11
Docker-compose
22
=
33

4-
##### 安装
4+
### 安装
5+
##### 普通安装
56
```bash
67
wget https://github.com/docker/compose/releases/download/v2.18.0/docker-compose-linux-x86_64
78
chmod +x docker-compose-linux-x86_64
89
mv docker-compose-linux-x86_64 /usr/local/bin/docker-compose
910
```
1011
`高版本(具体版本没细查)docker无需额外安装docker-compose, 可直接使用内置docker compose命令`
1112

12-
##### 基础命令说明
13+
##### Docker插件安装
14+
```bash
15+
mkdir -p ~/.docker/cli-plugins/
16+
curl -SL https://github.com/docker/compose/releases/download/v2.1.1/docker-compose-linux-x86_64 -o ~/.docker/cli-plugins/docker-compose
17+
chmod +x ~/.docker/cli-plugins/docker-compose
18+
docker compose version
19+
```
20+
21+
### 基础命令说明
1322
```bash
1423
# 启动容器
1524
docker-compose -f xxx.yaml up # 前台启动

0 commit comments

Comments
 (0)