I already think I understand that docker containers "share" the same Linux kernel running on their host. But inside a particular docker container, the software stack could be a distro debian, alpine, centos or ubuntu and on top of that various other software components, such as a web server, database, language interpreter etc.
Indeed there are official images for such distros.
But there are also official images for Apache (httpd) and PHP (php)
My question is, how can I find out the default distro that these sit upon?
I ask, because for example, I've seen a Dockerfile which starts with:
FROM php:7.2-fpm (which is one of the official PHP images)
Followed by:
RUN apt-get update && apt-get install -y \ libfreetype6-dev \ libjpeg62-turbo-dev \ libpng-dev \ && docker-php-ext-install -j$(nproc) iconv \ && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \ && docker-php-ext-install -j$(nproc) gd Source: hub.docker.com/_/php (see section "How to install more PHP extensions")
Also, what distro is used for the httpd (Apache) official image?