DockerのImage「httpd」は実際には何のOSで動作しているのだろうか?
httpdを起動後、コンテナIDを確認
docker container run -d httpd container ls CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES d66d4e89864c httpd "httpd-foreground" 6 minutes ago Up 6 minutes 80/tcp sleepy_volhard 7bff2ff80c85 nginx "/docker-entrypoint.…" 10 days ago Up 10 days 0.0.0.0:8080->80/tcp laughing_mclean
イメージにログインしてOSの情報を照会すると、OSはDebianであることが分かる。
docker exec -it d66d4e89864c /bin/bash cat /etc/os-release PRETTY_NAME="Debian GNU/Linux 12 (bookworm)" NAME="Debian GNU/Linux" VERSION_ID="12" VERSION="12 (bookworm)" VERSION_CODENAME=bookworm ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/"