-
Notifications
You must be signed in to change notification settings - Fork 11.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我用docker build 构建完了之后,然后在run 为什么还要加配置参数 --env,程序不自动读取.env配置文件? #1256
Comments
程序会自动读取.env配置文件,但是每次修改.env配置文件时会重新构建镜像,而通过--env修改环境变量能避免重新构建镜像 |
我修改了.env 我直接 在docker build 然后 run的时候不加 --env能行吗? |
可以 |
你用的哪个版本?在有几个版本中 |
谢谢大佬,明白了 |
This issue is stale because it has been open for 10 days with no activity. |
请问大佬们,我用docker build 构建完了之后,然后在run 为什么还要加配置参数 --env,程序不自动读取.env配置文件吗?.env里不是有配置吗,为啥还要加上 --env OPENAI_API_KEY= 不明白,求大佬解惑。。
The text was updated successfully, but these errors were encountered: