How do I combine several images into one?

后端 未结 2 1587
-上瘾入骨i
-上瘾入骨i 2021-01-13 14:06

I have several images (3rd parties) which eg setup a mysql, set up a generic php app environment, set up 3rd parties tools.

I want to make a Dockerfile / Docker Imag

2条回答
  •  别那么骄傲
    2021-01-13 14:28

    Since dependencies from seconds and third image can conflict with dependencies from first image, I don't think docker would able to support it.

    I guess the only option is to start your image from 1 of them an then install/run all of the steps from 2 others:

    FROM imageA
    RUN .... commands for imageV
    RUN .... commands for imageX
    

提交回复
热议问题