我有一个docker-compose.yml
文件,并在终端我typing docker-compose up [something]
但我也想通过一个参数docker-compose.yml
。这可能吗?我读过有关插值变量和尝试使用${testval}
然后docker-compose up [something] var="test"
指定在.yml
文件中的变量,但我收到以下错误:我如何通过一个参数与码头一起构成
WARNING: The testval variable is not set. Defaulting to a blank string.
ERROR: No such service:testval=test