Максим Шокавин Максим Шокавин - 5 months ago 35
MySQL Question

Docker: Can different containers use different base Images?

I want to build my application infrastructure from the following containers:

  • mongoDb

  • Mysql

  • MariaDb

  • My application

Can I just use for DBs containers from docker Hub even if they use different base images, or I should build my infrastructure on the same base image. I found examples for both options. What is the best practice?


There's absolutely no difference between these two option except you're gonna waste some of your time to build something that is already built!

If you want an especial customization you can do it in a pre-built image and create a new image for your own!