【云计算】docker build如何支持参数化构建?

docker 1.9.0版本之后,已经支持docker build参数化构建。

docker 版本更新记录:

 

github讨论:

 

 

参开资料:

https://github.com/docker/docker/issues/14634

http://stackoverflow.com/questions/34174499/docker-build-argument

https://github.com/docker/docker/blob/master/CHANGELOG.md#190-2015-11-03

https://github.com/docker/docker/issues/18119 

Allow using environment variables in `FROM`https://github.com/docker/docker/issues/18119

 

posted @ 2016-03-07 11:20  junneyang  阅读(1986)  评论(0编辑  收藏  举报