2022-03-09 12:57:07 +01:00
|
|
|
# docker compose create
|
|
|
|
|
|
|
|
<!---MARKER_GEN_START-->
|
2024-02-14 20:02:37 +01:00
|
|
|
Creates containers for a service
|
2022-03-09 12:57:07 +01:00
|
|
|
|
|
|
|
### Options
|
|
|
|
|
2023-09-07 16:36:22 +02:00
|
|
|
| Name | Type | Default | Description |
|
|
|
|
|:-------------------|:--------------|:---------|:----------------------------------------------------------------------------------------------|
|
2024-02-14 20:02:37 +01:00
|
|
|
| `--build` | | | Build images before starting containers |
|
2023-09-07 16:36:22 +02:00
|
|
|
| `--dry-run` | | | Execute command in dry run mode |
|
2024-02-14 20:02:37 +01:00
|
|
|
| `--force-recreate` | | | Recreate containers even if their configuration and image haven't changed |
|
|
|
|
| `--no-build` | | | Don't build an image, even if it's policy |
|
2023-09-07 16:36:22 +02:00
|
|
|
| `--no-recreate` | | | If containers already exist, don't recreate them. Incompatible with --force-recreate. |
|
2023-11-07 08:21:19 +01:00
|
|
|
| `--pull` | `string` | `policy` | Pull image before running ("always"\|"missing"\|"never"\|"build") |
|
2024-02-19 10:52:06 +01:00
|
|
|
| `--quiet-pull` | | | Pull without printing progress information |
|
2024-02-14 20:02:37 +01:00
|
|
|
| `--remove-orphans` | | | Remove containers for services not defined in the Compose file |
|
2023-09-07 16:36:22 +02:00
|
|
|
| `--scale` | `stringArray` | | Scale SERVICE to NUM instances. Overrides the `scale` setting in the Compose file if present. |
|
2022-03-09 12:57:07 +01:00
|
|
|
|
|
|
|
|
|
|
|
<!---MARKER_GEN_END-->
|
|
|
|
|