Closed jcsawyer closed 2 weeks ago
Both are valid and equivalent in compose file format according to the compose specification. Support for --no-interpolate
requires we use the key=value
syntax as some of those maybe use a variable and can't be split into a key: value
mapping.
Also, uncommon to declare compose file using json, any reason you adopted this syntax ?
We were using this functionality in our CI builds to deploy an Azure container instance for Windows container services by token replacing the values and leveraging the key value pair to build a bicep deployment parameters file.
Our compose files are defined as YAML but we build JSON files in pipelines as it sped up our builds.
If you have a custom compose file parser, then this one should follow the compose specification and support the multiple syntaxes.
Description
When using
docker compose config
with multiple json files, the environment variables are being merged into a flat list of strings where previously this was a dictionary.Expected behaviour (tested from)
Docker Compose version v2.24.6-desktop.1
:Actual behaviour in
Docker Compose version v2.27.0-desktop.2
:Steps To Reproduce
docker-compose.base.json
:docker-compose.overrides.json
:Compose Version
Docker Environment
Anything else?
This also affects YAML.