Ho un file docker-compose.yml
e nel terminale sono typing docker-compose up [something]
ma vorrei anche passare un argomento a docker-compose.yml
. È possibile? Ho letto sulle variabili di interpolazione e ho cercato di specificare una variabile nel file .yml
utilizzando ${testval}
e poi docker-compose up [something] var="test"
ma ricevo il seguente errore:Come passare un argomento con docker-compose up
WARNING: The testval variable is not set. Defaulting to a blank string.
ERROR: No such service:testval=test