How can I escape a $ dollar sign in a docker compose file?

前端 未结 2 1706
生来不讨喜
生来不讨喜 2020-11-29 02:54

I have a YAML scalar that is throwing the following error when I try to evaluate my docker-compose.yml file:

ERROR: Invalid interpolation

2条回答
  •  清歌不尽
    2020-11-29 03:40

    Found the answer by copying the suggestion for % characters in this post

    It requires a double dollar sign $$.

    So I needed "$${Time.now}", which evaluates to "${Time.now}"

提交回复
热议问题