mirror of https://github.com/docker/compose.git
109 lines
3.0 KiB
YAML
109 lines
3.0 KiB
YAML
command: docker compose create
|
|
short: Creates containers for a service
|
|
long: Creates containers for a service
|
|
usage: docker compose create [OPTIONS] [SERVICE...]
|
|
pname: docker compose
|
|
plink: docker_compose.yaml
|
|
options:
|
|
- option: build
|
|
value_type: bool
|
|
default_value: "false"
|
|
description: Build images before starting containers
|
|
deprecated: false
|
|
hidden: false
|
|
experimental: false
|
|
experimentalcli: false
|
|
kubernetes: false
|
|
swarm: false
|
|
- option: force-recreate
|
|
value_type: bool
|
|
default_value: "false"
|
|
description: |
|
|
Recreate containers even if their configuration and image haven't changed
|
|
deprecated: false
|
|
hidden: false
|
|
experimental: false
|
|
experimentalcli: false
|
|
kubernetes: false
|
|
swarm: false
|
|
- option: no-build
|
|
value_type: bool
|
|
default_value: "false"
|
|
description: Don't build an image, even if it's policy
|
|
deprecated: false
|
|
hidden: false
|
|
experimental: false
|
|
experimentalcli: false
|
|
kubernetes: false
|
|
swarm: false
|
|
- option: no-recreate
|
|
value_type: bool
|
|
default_value: "false"
|
|
description: |
|
|
If containers already exist, don't recreate them. Incompatible with --force-recreate.
|
|
deprecated: false
|
|
hidden: false
|
|
experimental: false
|
|
experimentalcli: false
|
|
kubernetes: false
|
|
swarm: false
|
|
- option: pull
|
|
value_type: string
|
|
default_value: policy
|
|
description: Pull image before running ("always"|"missing"|"never"|"build")
|
|
deprecated: false
|
|
hidden: false
|
|
experimental: false
|
|
experimentalcli: false
|
|
kubernetes: false
|
|
swarm: false
|
|
- option: quiet-pull
|
|
value_type: bool
|
|
default_value: "false"
|
|
description: Pull without printing progress information
|
|
deprecated: false
|
|
hidden: false
|
|
experimental: false
|
|
experimentalcli: false
|
|
kubernetes: false
|
|
swarm: false
|
|
- option: remove-orphans
|
|
value_type: bool
|
|
default_value: "false"
|
|
description: Remove containers for services not defined in the Compose file
|
|
deprecated: false
|
|
hidden: false
|
|
experimental: false
|
|
experimentalcli: false
|
|
kubernetes: false
|
|
swarm: false
|
|
- option: scale
|
|
value_type: stringArray
|
|
default_value: '[]'
|
|
description: |
|
|
Scale SERVICE to NUM instances. Overrides the `scale` setting in the Compose file if present.
|
|
deprecated: false
|
|
hidden: false
|
|
experimental: false
|
|
experimentalcli: false
|
|
kubernetes: false
|
|
swarm: false
|
|
inherited_options:
|
|
- option: dry-run
|
|
value_type: bool
|
|
default_value: "false"
|
|
description: Execute command in dry run mode
|
|
deprecated: false
|
|
hidden: false
|
|
experimental: false
|
|
experimentalcli: false
|
|
kubernetes: false
|
|
swarm: false
|
|
deprecated: false
|
|
hidden: false
|
|
experimental: false
|
|
experimentalcli: false
|
|
kubernetes: false
|
|
swarm: false
|
|
|