Skip to content

Commit a288332

Browse files
committed
Update docs to add --scale argument to compose create
Signed-off-by: Laura Brehm <[email protected]>
1 parent 9d53ed8 commit a288332

File tree

2 files changed

+20
-8
lines changed

2 files changed

+20
-8
lines changed

docs/reference/compose_create.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@ Creates containers for a service.
55

66
### Options
77

8-
| Name | Type | Default | Description |
9-
|:-------------------|:---------|:----------|:--------------------------------------------------------------------------------------|
10-
| `--build` | | | Build images before starting containers. |
11-
| `--force-recreate` | | | Recreate containers even if their configuration and image haven't changed. |
12-
| `--no-build` | | | Don't build an image, even if it's missing. |
13-
| `--no-recreate` | | | If containers already exist, don't recreate them. Incompatible with --force-recreate. |
14-
| `--pull` | `string` | `missing` | Pull image before running ("always"\|"missing"\|"never") |
15-
| `--remove-orphans` | | | Remove containers for services not defined in the Compose file. |
8+
| Name | Type | Default | Description |
9+
|:-------------------|:--------------|:----------|:----------------------------------------------------------------------------------------------|
10+
| `--build` | | | Build images before starting containers. |
11+
| `--force-recreate` | | | Recreate containers even if their configuration and image haven't changed. |
12+
| `--no-build` | | | Don't build an image, even if it's missing. |
13+
| `--no-recreate` | | | If containers already exist, don't recreate them. Incompatible with --force-recreate. |
14+
| `--pull` | `string` | `missing` | Pull image before running ("always"\|"missing"\|"never") |
15+
| `--remove-orphans` | | | Remove containers for services not defined in the Compose file. |
16+
| `--scale` | `stringArray` | | Scale SERVICE to NUM instances. Overrides the `scale` setting in the Compose file if present. |
1617

1718

1819
<!---MARKER_GEN_END-->

docs/reference/docker_compose_create.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,17 @@ options:
6767
experimentalcli: false
6868
kubernetes: false
6969
swarm: false
70+
- option: scale
71+
value_type: stringArray
72+
default_value: '[]'
73+
description: |
74+
Scale SERVICE to NUM instances. Overrides the `scale` setting in the Compose file if present.
75+
deprecated: false
76+
hidden: false
77+
experimental: false
78+
experimentalcli: false
79+
kubernetes: false
80+
swarm: false
7081
deprecated: false
7182
experimental: false
7283
experimentalcli: false

0 commit comments

Comments
 (0)