在Docker Build时怎么给容器内部即传参给容器内部,不是docker,比如我Docker有个环境变量,这个没有设置,在编译的时候根据传参不同,执行不同的操作来生成我指定的镜像,不要每个不同版本都写一遍配置。
怪我咯2017-04-27 09:03:36
The Docker image exists as a universal image, and all environment variables and other settings should be implemented by specifying parameters when running. If you want to use different configurations, you can use docker compose instead of generating different images for different configurations