【发布时间】:2015-07-07 21:49:00
【问题描述】:
我正在使用 Docker Compose 来启动一些容器,但我没有让 command 工作。我想启动我的 Flask 服务器,但也为它设置了一个环境变量。这是我所做的:
web:
command: INSTASONG_ENV=production python manage.py runserver
很遗憾,我收到了这个错误:
Cannot start container 2a413b1270b9faa5e0ffb8a70603ae25c48ff742e0d8476bed8153febcee185a: [8] System error: exec: "INSTASONG_ENV=production": executable file not found in $PATH
我怎样才能做到这一点?
【问题讨论】:
标签: python shell docker environment-variables docker-compose