您可以将它们链接起来。你可以在这里找到更多
https://github.com/docker/docker/issues/3378#issuecomment-31314906
摘自上面的链接
## Dockerfile.genericwebapp might have FROM ubuntucat Dockerfile.genericwebapp | docker build -t genericwebapp -## Dockerfile.genericpython-web would have FROM genericwebappcat Dockerfile.genericpython-web | docker build -t genericpython-web -## and then this specific app i'm testing might have a docker file that containers FROM genericpython-webdocker build -t thisapp .
上述 SvenDowideit的
作者
通常,在同一个容器上运行多个进程是一个不好的做法。



