Fix errors

This commit is contained in:
Baohua Yang
2026-02-16 18:45:40 -08:00
parent acc74f17bb
commit f68795f34c
6 changed files with 120 additions and 42 deletions

View File

@@ -216,6 +216,12 @@ $ docker compose scale web=3 db=2
将启动 3 个容器运行 web 服务2 个容器运行 db 服务
> **提示**部分版本的 Compose 可能不再提供独立的 `scale` 子命令或不推荐使用此时可使用 `docker compose up` `--scale` 选项达到同样效果
>
> ```bash
> $ docker compose up -d --scale web=3 --scale db=2
> ```
一般的当指定数目多于该服务当前实际运行容器将新创建并启动容器反之将停止容器
选项