Search code examples
dockerkitematic

How to find a Docker image on Docker Hub?


I am new to Docker. Using Kitematic, how can I setup a Docker container containing the following?

Apache, Memcached, MySQL, Nginx, PHP FPM

Should I find one single image with all these? If so, how do I find that on https://hub.docker.com? It doesn't seem possible to filter by above requirements.

Or should I install these as separate containers?


Solution

  • Bart,

    I don't know anything about kitematic but I can give you some general information though to clear things up.

    General concensus is to run only a single process per container. There are lot's of discussions and information around why this would be good or bad, one such discussion for example: https://devops.stackexchange.com/questions/447/why-it-is-recommended-to-run-only-one-process-in-a-container.

    That said, these are the images I would choose for an environment with the software you described above:

    How do I get these images? I go to hub.docker.com and search for the software I want, I then start with the official images and see if they suite my needs. If they do, great! Otherwise, I would look for non-official images and eventually if I don't find what I want I will extend the existing images by creating a custom image, based on one from hub.docker.com

    Some more explanation about the last one, PHP. PHP is distributed with multiple tags. By going to the docker hub page ('description'-tab) you can see the supported tags. Clicking the tag you are interested in will lead you to a github repo where the Dockerfile is hosted. This file contains the commands, used to construct the image you are researching. You can check all the tags to see which one installs the software you need. For example, there are PHP tags where apache is installed (i.e. 7-apache) and there are tags where FPM is installed (i.e. 7-fpm).

    Hope this will help you with the research about what images to use!