Compose: $ at the end of environment variable causes "Invalid Interpolation" error

Created on 4 Dec 2015  路  2Comments  路  Source: docker/compose

Repro Steps:

  • Create a new directory
  • Use the attached docker-compose.yml file
  • docker-compose up

Expected Results:
A redis container is created.

Actual results:
ERROR: Invalid interpolation format for "environment" option in service "contentMysql": "B!naree80reF0rG3taway$"

docker-compose.yml.txt

areconfig

Most helpful comment

Does it work if you escape the $ using $$ ?

I'm not sure there is anything we can do about this. $ is now a special character, and needs to be escaped.

All 2 comments

Does it work if you escape the $ using $$ ?

I'm not sure there is anything we can do about this. $ is now a special character, and needs to be escaped.

It does work with the escaping. These docker-compose.yml files worked before and then stopped after I upgraded, I missed the variable substitution section of the documentation.

Closing.

Was this page helpful?
0 / 5 - 0 ratings