码头工人可交换的中间层

时间:2018-02-28 09:50:22

标签: docker

Docker可以做同样的事吗

Image1: Linux 
Image2A: Python2.7 (FROM Image1)
Image2B: Python3.6  (FROM Image1)
Image3: install application  (FROM Image2A or FROM Image2B)

Image4A: Linux>Python2.7>applciation (FROM Image3 with same parameters that depend python2.7)
Image4B: Linux>Python3.6>applciation (FROM Image3 with same parameters that depend python3.6)

如果不可能,建议如何计划。对我来说关键是我有 可交换的中间层,并希望有简单的方法来构建最后一层。

0 个答案:

没有答案