Back to Compose

docker compose convert

docs/reference/compose_config.md

5.1.33.3 KB
Original Source

docker compose convert

<!---MARKER_GEN_START-->

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.

Options

NameTypeDefaultDescription
--dry-runboolExecute command in dry run mode
--environmentboolPrint environment used for interpolation.
--formatstringFormat the output. Values: [yaml | json]
--hashstringPrint the service config hash, one per line.
--imagesboolPrint the image names, one per line.
--lock-image-digestsboolProduces an override file with image digests
--modelsboolPrint the model names, one per line.
--networksboolPrint the network names, one per line.
--no-consistencyboolDon't check model consistency - warning: may produce invalid Compose output
--no-env-resolutionboolDon't resolve service env files
--no-interpolateboolDon't interpolate environment variables
--no-normalizeboolDon't normalize compose model
--no-path-resolutionboolDon't resolve file paths
-o, --outputstringSave to file (default to stdout)
--profilesboolPrint the profile names, one per line.
-q, --quietboolOnly validate the configuration, don't print anything
--resolve-image-digestsboolPin image tags to digests
--servicesboolPrint the service names, one per line.
--variablesboolPrint model variables and default values.
--volumesboolPrint the volume names, one per line.
<!---MARKER_GEN_END-->

Description

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.