Open Raphtor opened 3 months ago
There must be a naive splitting of the volume string by :
indeed, as variable syntax has many subtle rules, it makes it hard to split string without actual interpolation. Also volume could be set by a single variable to both declare source and destination, which would prevent expanding to "long syntax":
volumes:
- ${STRING}
Description
Example
compose.yml
Here, I am using the interpolation that throws an error if
DIRECTORY
is empty (see docs) When runningdocker compose config --no-interpolate
, I would expect to see:What I actually get:
There must be a naive splitting of the volume string by
:
, as it doesn't happen when using the required value that allows empty values, e.g./${DIRECTORY?error}/:/home/data
produces the correct outputSteps To Reproduce
docker compose config --no-interpolate
Compose Version
Docker Environment
Anything else?
No response