| 1 |
# docker compose create |
| 2 |
|
| 3 |
<!---MARKER_GEN_START--> |
| 4 |
Creates containers for a service |
| 5 |
|
| 6 |
### Options |
| 7 |
|
| 8 |
| Name | Type | Default | Description | |
| 9 |
|:-------------------|:--------------|:---------|:----------------------------------------------------------------------------------------------| |
| 10 |
| `--build` | `bool` | | Build images before starting containers | |
| 11 |
| `--dry-run` | `bool` | | Execute command in dry run mode | |
| 12 |
| `--force-recreate` | `bool` | | Recreate containers even if their configuration and image haven't changed | |
| 13 |
| `--no-build` | `bool` | | Don't build an image, even if it's policy | |
| 14 |
| `--no-recreate` | `bool` | | If containers already exist, don't recreate them. Incompatible with --force-recreate. | |
| 15 |
| `--pull` | `string` | `policy` | Pull image before running ("always"\|"missing"\|"never"\|"build") | |
| 16 |
| `--quiet-pull` | `bool` | | Pull without printing progress information | |
| 17 |
| `--remove-orphans` | `bool` | | Remove containers for services not defined in the Compose file | |
| 18 |
| `--scale` | `stringArray` | | Scale SERVICE to NUM instances. Overrides the `scale` setting in the Compose file if present. | |
| 19 |
| `-y`, `--yes` | `bool` | | Assume "yes" as answer to all prompts and run non-interactively | |
| 20 |
|
| 21 |
|
| 22 |
<!---MARKER_GEN_END--> |
| 23 |
|