docker-compose 中是否有等效的机制来执行以下操作:
# Pass Env variable based on some expression
ENV_VAR=`some bash expression`
docker run -d -e "MY_ENV_VAR=${ENV_VAR}" myDockerContainer
docker-compose 中是否有等效的机制来执行以下操作:
# Pass Env variable based on some expression
ENV_VAR=`some bash expression`
docker run -d -e "MY_ENV_VAR=${ENV_VAR}" myDockerContainer