Open Emulator000 opened 1 month ago
Using four ($$$$
) dollar sign temporarily solves the issue.
LOL - using four ($$$$) dollar sign works !
Wild that that this double dollar "issue" has been open for so long, and now out of nowhere we need four dollar signs.
I agree I have multiple compose file that worked on v2.28.1 using $$ interpolation inline. Now they are failing in v2.29.0.
Going back to v2.28.1 waiting for a fix.
This is a known issue with version v2.29.0
. It is working in v2.28.1
. We will release a fix soon. Relates #11990
Description
According to the Docker Compose documentation, using a double-dollar sign ($$) should allow for a literal dollar sign and prevent Docker Compose from interpolating the value. This feature is crucial for referring to environment variables within the command string that should not be processed by Docker Compose itself.
From the Docker Compose documentation:
Problem
In my
compose.yaml
file, I am attempting to use$$CONSOLE_CONFIG_FILE
to ensure that the environment variable is passed as a literal string to the container’s shell. However, despite following the documented approach, Docker Compose still tries to interpolate the environment variable, leading to the following warning in the logs:This behavior indicates that the double-dollar sign mechanism to prevent interpolation is no longer working as intended.
Steps To Reproduce
compose.yaml
file with a service using a double-dollar sign to prevent interpolation;Compose Version
Docker Environment
Anything else?
No response