标签: docker intellij-idea
我正在尝试使用IntelliJ内部的env文件执行Docker运行。有没有办法提供这个参数运行图像?进入CLI设置时,无法通过说--env-file is an invalid parameter来执行。
--env-file is an invalid parameter
答案 0 :(得分:0)
在Docker运行配置下,选择Dockerfile作为类型。然后在--env foo.env行中输入Command line options(或等效内容)。 Command preview现在应该显示之前指定的环境文件的使用。
Docker
Dockerfile
--env foo.env
Command line options
Command preview