Docker: Can different containers use different base Images?

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

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?

Upvotes: 1

Views: 229

Answers (1)

Mohsen ZareZardeyni
Mohsen ZareZardeyni

Reputation: 956

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!

Upvotes: 1

Related Questions