2022-03-09 12:57:07 +01:00
|
|
|
# docker compose convert
|
2021-03-11 16:20:30 +01:00
|
|
|
|
2022-03-09 12:57:07 +01:00
|
|
|
<!---MARKER_GEN_START-->
|
2024-07-17 11:27:58 +02:00
|
|
|
`docker compose config` renders the actual data model to be applied on 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.
|
2022-03-09 12:57:07 +01:00
|
|
|
|
|
|
|
### Aliases
|
|
|
|
|
2023-01-27 10:04:52 +01:00
|
|
|
`docker compose config`, `docker compose convert`
|
2022-03-09 12:57:07 +01:00
|
|
|
|
|
|
|
### Options
|
|
|
|
|
2022-12-29 14:32:16 +01:00
|
|
|
| Name | Type | Default | Description |
|
|
|
|
|:--------------------------|:---------|:--------|:----------------------------------------------------------------------------|
|
2024-07-17 11:27:58 +02:00
|
|
|
| `--dry-run` | `bool` | | Execute command in dry run mode |
|
|
|
|
| `--environment` | `bool` | | Print environment used for interpolation. |
|
2022-12-29 14:32:16 +01:00
|
|
|
| `--format` | `string` | `yaml` | Format the output. Values: [yaml \| json] |
|
2024-03-21 10:33:47 +01:00
|
|
|
| `--hash` | `string` | | Print the service config hash, one per line. |
|
2024-07-17 11:27:58 +02:00
|
|
|
| `--images` | `bool` | | Print the image names, one per line. |
|
|
|
|
| `--no-consistency` | `bool` | | Don't check model consistency - warning: may produce invalid Compose output |
|
|
|
|
| `--no-interpolate` | `bool` | | Don't interpolate environment variables |
|
|
|
|
| `--no-normalize` | `bool` | | Don't normalize compose model |
|
|
|
|
| `--no-path-resolution` | `bool` | | Don't resolve file paths |
|
2022-12-29 14:32:16 +01:00
|
|
|
| `-o`, `--output` | `string` | | Save to file (default to stdout) |
|
2024-07-17 11:27:58 +02:00
|
|
|
| `--profiles` | `bool` | | Print the profile names, one per line. |
|
|
|
|
| `-q`, `--quiet` | `bool` | | Only validate the configuration, don't print anything |
|
|
|
|
| `--resolve-image-digests` | `bool` | | Pin image tags to digests |
|
|
|
|
| `--services` | `bool` | | Print the service names, one per line. |
|
|
|
|
| `--variables` | `bool` | | Print model variables and default values. |
|
|
|
|
| `--volumes` | `bool` | | Print the volume names, one per line. |
|
2022-03-09 12:57:07 +01:00
|
|
|
|
|
|
|
|
|
|
|
<!---MARKER_GEN_END-->
|
2021-03-11 16:20:30 +01:00
|
|
|
|
|
|
|
## Description
|
|
|
|
|
2023-10-31 11:40:48 +01:00
|
|
|
`docker compose config` renders the actual data model to be applied on the Docker Engine.
|
|
|
|
It merges the Compose files set by `-f` flags, resolves variables in the Compose file, and expands short-notation into
|
2022-11-29 16:52:22 +01:00
|
|
|
the canonical format.
|