在Docker Build时怎么给容器内部即传参给容器内部,不是docker
世界只因有你
世界只因有你 2017-04-27 09:01:36
0
1
684

在Docker Build时怎么给容器内部即传参给容器内部,不是docker,比如我Docker有个环境变量,这个没有设置,在编译的时候根据传参不同,执行不同的操作来生成我指定的镜像,不要每个不同版本都写一遍配置。

世界只因有你
世界只因有你

reply all(1)
刘奇

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!