DOCKER-COMPOSE-CONFIG(1)
π
DOCKER-COMPOSE-CONFIG β the docker-compose-config page, bestie edition
okay so you found the docker-compose-config(1) manual page and honestly? iconic of you. this is the part of the compose universe that takes your messy little YAML situation and turns it into the actual canonical truth. let's get into it π
β¨ NAME β¨
docker-compose-config β parse, resolve and render compose file in canonical format
like, it reads your stuff, figures out what it actually means, and hands it back all cleaned up. main character behaviour fr.
πΈ SYNOPSIS πΈ
docker compose config [OPTIONS] [SERVICE...]
you can throw OPTIONS at it, and you can also name specific SERVICEs if you only care about some of them. we love a picky queen. π
π¦ DESCRIPTION π¦
so docker compose config renders the actual data model that's gonna be applied on the Docker Engine. that's the whole vibe. no guessing, no mystery β it shows you what's really about to go down.
here's the tea on what it does while it's at it:
- it merges the Compose files you set with the
-fflags (yes, plural, you can stack them) - it resolves variables in the Compose file (so your
${ENV_VAR}situations get sorted) - it expands short-notation into the canonical format
basically it's the glow-up your compose file didn't know it needed. β¨
π OPTIONS π
one bullet per option, no skipping, we don't do that here.
--format="yaml"β format the output. values are:[yaml | json]. default isyamlbestie, but json is right there if that's your era.--hash=""β print the service config hash, one per line. great for when you're obsessed with knowing if anything actually changed.-h,--help[=false]β help forconfig. the classic. the blueprint. the "wait what was the flag again" saviour.--images[=false]β print the image names, one per line.--no-consistency[=false]β don't check model consistency.
β οΈ warning: this may produce invalid Compose output. like, fr fr. it's giving chaos and I respect it but also be careful.
--no-interpolate[=false]β don't interpolate environment variables. leave those${}girlies exactly as they are.--no-normalize[=false]β don't normalize compose model. raw and unfiltered, no edits.--no-path-resolution[=false]β don't resolve file paths. they stay exactly as you typed them.-o,--output=""β save to file (default to stdout). so if you don't pass anything, it just spills out into your terminal like a lil waterfall. π§--profiles[=false]β print the profile names, one per line.-q,--quiet[=false]β only validate the configuration, don't print anything. silent but deadly. lowkey the most powerful one here.--resolve-image-digests[=false]β pin image tags to digests. lock them in, no cap.--services[=false]β print the service names, one per line.--variables[=false]β print model variables and default values.--volumes[=false]β print the volume names, one per line.
π OPTIONS INHERITED FROM PARENT COMMANDS π
these came from the parent command, they're family, we keep them π«Ά
--dry-run[=false]β execute command in dry run mode. practice run, no consequences, the safest way to test the vibe.
π₯ SEE ALSO π₯
docker-compose(1)β go read the parent page, it's the origin story bestie
and that's the whole page, you ate that π
this was brought to you by the Mar 2025 era of DOCKER-COMPOSE-CONFIG(1) β same page name up top, same page name down here, symmetry queen β¨
mwah, go render something canonical ππ
π¦ where this page comes from
- debian trixie: docker-compose 2.26.1-4 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms