2021-03-08 15:47:24 +01:00
|
|
|
command: docker compose convert
|
2022-07-26 14:58:08 +02:00
|
|
|
aliases: docker compose convert, docker compose config
|
2021-03-08 15:47:24 +01:00
|
|
|
short: Converts the compose file to platform's canonical format
|
2021-09-13 17:41:21 +02:00
|
|
|
long: |-
|
2022-11-29 16:52:22 +01:00
|
|
|
`docker compose convert` renders the actual data model to be applied on the target platform. When used with the Docker engine,
|
|
|
|
it merges the Compose files set by `-f` flags, resolves variables in the Compose file, and expands short-notation into
|
|
|
|
the canonical format.
|
2021-09-13 17:41:21 +02:00
|
|
|
|
2022-07-26 14:58:08 +02:00
|
|
|
To allow smooth migration from docker-compose, this subcommand declares alias `docker compose config`
|
2022-08-02 13:11:57 +02:00
|
|
|
usage: docker compose convert [OPTIONS] [SERVICE...]
|
2021-03-08 15:47:24 +01:00
|
|
|
pname: docker compose
|
|
|
|
plink: docker_compose.yaml
|
|
|
|
options:
|
2022-07-26 14:58:08 +02:00
|
|
|
- option: format
|
|
|
|
value_type: string
|
|
|
|
default_value: yaml
|
|
|
|
description: 'Format the output. Values: [yaml | json]'
|
|
|
|
deprecated: false
|
|
|
|
hidden: false
|
|
|
|
experimental: false
|
|
|
|
experimentalcli: false
|
|
|
|
kubernetes: false
|
|
|
|
swarm: false
|
|
|
|
- option: hash
|
|
|
|
value_type: string
|
|
|
|
description: Print the service config hash, one per line.
|
|
|
|
deprecated: false
|
|
|
|
hidden: false
|
|
|
|
experimental: false
|
|
|
|
experimentalcli: false
|
|
|
|
kubernetes: false
|
|
|
|
swarm: false
|
|
|
|
- option: images
|
|
|
|
value_type: bool
|
|
|
|
default_value: "false"
|
|
|
|
description: Print the image names, one per line.
|
|
|
|
deprecated: false
|
|
|
|
hidden: false
|
|
|
|
experimental: false
|
|
|
|
experimentalcli: false
|
|
|
|
kubernetes: false
|
|
|
|
swarm: false
|
2022-11-08 15:54:50 +01:00
|
|
|
- option: no-consistency
|
|
|
|
value_type: bool
|
|
|
|
default_value: "false"
|
|
|
|
description: |
|
|
|
|
Don't check model consistency - warning: may produce invalid Compose output
|
|
|
|
deprecated: false
|
|
|
|
hidden: false
|
|
|
|
experimental: false
|
|
|
|
experimentalcli: false
|
|
|
|
kubernetes: false
|
|
|
|
swarm: false
|
2022-07-26 14:58:08 +02:00
|
|
|
- option: no-interpolate
|
|
|
|
value_type: bool
|
|
|
|
default_value: "false"
|
|
|
|
description: Don't interpolate environment variables.
|
|
|
|
deprecated: false
|
|
|
|
hidden: false
|
|
|
|
experimental: false
|
|
|
|
experimentalcli: false
|
|
|
|
kubernetes: false
|
|
|
|
swarm: false
|
|
|
|
- option: no-normalize
|
|
|
|
value_type: bool
|
|
|
|
default_value: "false"
|
|
|
|
description: Don't normalize compose model.
|
|
|
|
deprecated: false
|
|
|
|
hidden: false
|
|
|
|
experimental: false
|
|
|
|
experimentalcli: false
|
|
|
|
kubernetes: false
|
|
|
|
swarm: false
|
|
|
|
- option: output
|
|
|
|
shorthand: o
|
|
|
|
value_type: string
|
|
|
|
description: Save to file (default to stdout)
|
|
|
|
deprecated: false
|
|
|
|
hidden: false
|
|
|
|
experimental: false
|
|
|
|
experimentalcli: false
|
|
|
|
kubernetes: false
|
|
|
|
swarm: false
|
|
|
|
- option: profiles
|
|
|
|
value_type: bool
|
|
|
|
default_value: "false"
|
|
|
|
description: Print the profile names, one per line.
|
|
|
|
deprecated: false
|
|
|
|
hidden: false
|
|
|
|
experimental: false
|
|
|
|
experimentalcli: false
|
|
|
|
kubernetes: false
|
|
|
|
swarm: false
|
|
|
|
- option: quiet
|
|
|
|
shorthand: q
|
|
|
|
value_type: bool
|
|
|
|
default_value: "false"
|
|
|
|
description: Only validate the configuration, don't print anything.
|
|
|
|
deprecated: false
|
|
|
|
hidden: false
|
|
|
|
experimental: false
|
|
|
|
experimentalcli: false
|
|
|
|
kubernetes: false
|
|
|
|
swarm: false
|
|
|
|
- option: resolve-image-digests
|
|
|
|
value_type: bool
|
|
|
|
default_value: "false"
|
|
|
|
description: Pin image tags to digests.
|
|
|
|
deprecated: false
|
|
|
|
hidden: false
|
|
|
|
experimental: false
|
|
|
|
experimentalcli: false
|
|
|
|
kubernetes: false
|
|
|
|
swarm: false
|
|
|
|
- option: services
|
|
|
|
value_type: bool
|
|
|
|
default_value: "false"
|
|
|
|
description: Print the service names, one per line.
|
|
|
|
deprecated: false
|
|
|
|
hidden: false
|
|
|
|
experimental: false
|
|
|
|
experimentalcli: false
|
|
|
|
kubernetes: false
|
|
|
|
swarm: false
|
|
|
|
- option: volumes
|
|
|
|
value_type: bool
|
|
|
|
default_value: "false"
|
|
|
|
description: Print the volume names, one per line.
|
|
|
|
deprecated: false
|
|
|
|
hidden: false
|
|
|
|
experimental: false
|
|
|
|
experimentalcli: false
|
|
|
|
kubernetes: false
|
|
|
|
swarm: false
|
2021-03-08 15:47:24 +01:00
|
|
|
deprecated: false
|
|
|
|
experimental: false
|
|
|
|
experimentalcli: false
|
|
|
|
kubernetes: false
|
|
|
|
swarm: false
|
|
|
|
|