I am the author of this blog / series, so let me tell you in detail about why I chose one basic image. :)
Docker offers the ability to use a common base image for subsequent images, so you can add all the images, and each image contains only diff for the main image (which is a big advantage of docker!). You can save disk space and RAM. If this does not bother you (I mean that RAM and memory are cheap), you can also use multiple images.
Another advantage of a single base image is that you can customize / protect this base image based on your needs. If you use a different base image for each container, you must support all of them (for example, a firewall), and Docker will load several different images (uses more disk space, collecting containers takes longer)).
But what's the difference when you look at official images? The official images of mongodb, redis and MySQL are based on the debian: wheezy image. So, if you use these images, they will also be based on the same base image, right?
Anyway, if you want to use your own architecture, feel free to ... please think of this architecture / blog as a possible idea for creating a Docker setup. Thanks to Docker and how it splits the kernel, you can use as many images as you want. :)
Hi,
Sasha
source share