File: compose_create.md

package info (click to toggle)
docker-compose 2.32.4-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,300 kB
  • sloc: makefile: 113; sh: 2
file content (23 lines) | stat: -rw-r--r-- 1,875 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# docker compose create

<!---MARKER_GEN_START-->
Creates containers for a service

### Options

| Name               | Type          | Default  | Description                                                                                   |
|:-------------------|:--------------|:---------|:----------------------------------------------------------------------------------------------|
| `--build`          | `bool`        |          | Build images before starting containers                                                       |
| `--dry-run`        | `bool`        |          | Execute command in dry run mode                                                               |
| `--force-recreate` | `bool`        |          | Recreate containers even if their configuration and image haven't changed                     |
| `--no-build`       | `bool`        |          | Don't build an image, even if it's policy                                                     |
| `--no-recreate`    | `bool`        |          | If containers already exist, don't recreate them. Incompatible with --force-recreate.         |
| `--pull`           | `string`      | `policy` | Pull image before running ("always"\|"missing"\|"never"\|"build")                             |
| `--quiet-pull`     | `bool`        |          | Pull without printing progress information                                                    |
| `--remove-orphans` | `bool`        |          | Remove containers for services not defined in the Compose file                                |
| `--scale`          | `stringArray` |          | Scale SERVICE to NUM instances. Overrides the `scale` setting in the Compose file if present. |
| `-y`, `--y`        | `bool`        |          | Assume "yes" as answer to all prompts and run non-interactively                               |


<!---MARKER_GEN_END-->