You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I came across a strange issue where running docker compose config --variables lists weird and incorrect variable names like so:
NAME REQUIRED DEFAULT VALUE ALTERNATE VALUE
SUBDOMAIN:-redis}.${ROOTDOMAIN true
Docker compose seems to wrongly parse the variable interpolations and match the furthest : instead of the closest : for the variable name.
When running docker compose config the variable interpolations work correctly and the way they should, so this is only an issue when listing the variables using --variables.
Steps To Reproduce
Create a docker-compose.yml file with the following content:
Description
I'm not sure whether to report this here or at compose-spec/compose-go.
I came across a strange issue where running
docker compose config --variables
lists weird and incorrect variable names like so:Docker compose seems to wrongly parse the variable interpolations and match the furthest
:
instead of the closest:
for the variable name.When running
docker compose config
the variable interpolations work correctly and the way they should, so this is only an issue when listing the variables using--variables
.Steps To Reproduce
docker-compose.yml
file with the following content:docker compose config --variables
Compose Version
Docker Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: