Skip to content
Fresh

docker compose convert

Back

Reference

docker compose convert

Copy as Markdown

Open MarkdownAsk Docs AIClaudeOpen in Claude

| Description | Converts the compose file to platform's canonical format | | Usage | docker compose convert [OPTIONS] [SERVICE...] | | Aliases<br>An alias is a short or memorable alternative for a longer command. | docker compose config |

Description

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.

To allow smooth migration from docker-compose, this subcommand declares alias docker compose config

Options

OptionDefaultDescription
--formatyamlFormat the output. Values: [yaml | json]
--hashPrint the service config hash, one per line.
--imagesPrint the image names, one per line.
--no-consistencyDon't check model consistency - warning: may produce invalid Compose output
--no-interpolateDon't interpolate environment variables.
--no-normalizeDon't normalize compose model.
-o, --outputSave to file (default to stdout)
--profilesPrint the profile names, one per line.
-q, --quietOnly validate the configuration, don't print anything.
--resolve-image-digestsPin image tags to digests.
--servicesPrint the service names, one per line.
--volumesPrint the volume names, one per line.