Using docker environment -e variable in supervisor
问题 I've been trying to pass in an environment variable to a Docker container via the -e option. The variable is meant to be used in a supervisor script within the container. Unfortunately, the variable does not get resolved (i.e. they stay for instance $INSTANCENAME ). I tried ${var} and "${var}" , but this didn't help either. Is there anything I can do or is this just not possible? The docker run command: sudo docker run -d -e "INSTANCENAME=instance-1" -e "FOO=2" -v /var/app/tmp:/var/app/tmp -t