docker-compose

当你需要 运行多个镜像的时候不能

docker merge image2 image2 merged_image

你甚至不可以用下面的方式来构建Dockerfile:

FROM image1 FROM image2
简而言之,在一个Dockerfile里不能有多个基础镜像

链接

如何简单解决呢就是用docker-compose  链接

docker-compose 详细教程

关注公众号 海量干货等你
原文地址:https://www.cnblogs.com/sowhat1412/p/12734301.html