Aller au contenu

Maintenance

2026/10/22 Faille php

Lister version php sur conteneur

export csv

Note
#!/usr/bin/env bash
# Affiche dans le terminal la version de PHP des conteneurs Docker en cours d'exécution
# qui utilisent PHP (les autres conteneurs sont ignorés).
# Par défaut : tableau Markdown (prêt à copier-coller dans un fichier .md).
# Usage :
#   ./docker-php-versions.sh          # tableau Markdown
#   ./docker-php-versions.sh --csv    # CSV

set -u

FORMAT="md"
[ "${1:-}" = "--csv" ] && FORMAT="csv"

# 1) On collecte d'abord toutes les lignes (rien n'est affiché pendant l'analyse)
rows=""
while IFS=';' read -r name image; do
version=$(docker exec "$name" php -r 'echo PHP_VERSION;' 2>/dev/null </dev/null)
[ -z "$version" ] && continue   # conteneur sans PHP : on l'ignore
if [ "$FORMAT" = "csv" ]; then
    rows+=$(printf '"%s","%s","%s"' "$name" "$image" "$version")$'\n'
else
    rows+="| $name | $image | $version |"$'\n'
fi
done < <(docker ps --format '{{.Names}};{{.Image}}')

# 2) Aucun conteneur PHP trouvé
if [ -z "$rows" ]; then
echo "Aucun conteneur en cours d'exécution n'utilise PHP." >&2
exit 0
fi

# 3) Affichage : l'en-tête puis les données, d'un seul bloc
if [ "$FORMAT" = "csv" ]; then
echo "conteneur,image,version_php"
else
echo "| Conteneur | Image | Version PHP |"
echo "|-----------|-------|-------------|"
fi
printf '%s' "$rows"
Conteneur Image Version PHP
nextcloud bigbeartechworld/big-bear-nextcloud-with-smbclient:35.0.2 8.5.12
big-bear-nextcloud-cron-1 bigbeartechworld/big-bear-nextcloud-with-smbclient:35.0.2 8.5.12
db-nextcloud postgres:14.2 OCI runtime exec failed: exec failed: unable to start container process: exec: "php": executable file not found in $PATH: unknown
redis-nextcloud redis:latest OCI runtime exec failed: exec failed: unable to start container process: exec: "php": executable file not found in $PATH: unknown
peertube chocobozzz/peertube:production OCI runtime exec failed: exec failed: unable to start container process: exec: "php": executable file not found in $PATH: unknown
peertube-redis redis:7-alpine OCI runtime exec failed: exec failed: unable to start container process: exec: "php": executable file not found in $PATH: unknown
castopod castopod/castopod:latest 8.4.18
castopod-mariadb mariadb:11 OCI runtime exec failed: exec failed: unable to start container process: exec: "php": executable file not found in $PATH: unknown
castopod-redis redis:7-alpine OCI runtime exec failed: exec failed: unable to start container process: exec: "php": executable file not found in $PATH: unknown
hugo-weekly-notes ghcr.io/gohugoio/hugo:v0.165.0 OCI runtime exec failed: exec failed: unable to start container process: exec: "php": executable file not found in $PATH: unknown
hugo ghcr.io/gohugoio/hugo:v0.165.0 OCI runtime exec failed: exec failed: unable to start container process: exec: "php": executable file not found in $PATH: unknown
peertube-postgres postgres:13-alpine OCI runtime exec failed: exec failed: unable to start container process: exec: "php": executable file not found in $PATH: unknown
jellyfin linuxserver/jellyfin:latest OCI runtime exec failed: exec failed: unable to start container process: exec: "php": executable file not found in $PATH: unknown
transmission linuxserver/transmission:4.1.3 OCI runtime exec failed: exec failed: unable to start container process: exec: "php": executable file not found in $PATH: unknown
n8n-python-runner n8nio/runners:latest OCI runtime exec failed: exec failed: unable to start container process: exec: "php": executable file not found in $PATH: unknown
n8n n8nio/n8n:2.39.4 OCI runtime exec failed: exec failed: unable to start container process: exec: "php": executable file not found in $PATH: unknown
azuracast-azuracast-1 azuracast/azuracast:0.23.8 8.5.9
big-bear-vikunja vikunja/vikunja:2.6.0 OCI runtime exec failed: exec failed: unable to start container process: exec: "php": executable file not found in $PATH: unknown
vikunja-db mariadb:10 OCI runtime exec failed: exec failed: unable to start container process: exec: "php": executable file not found in $PATH: unknown
linkding sissbruecker/linkding:1.46.2 OCI runtime exec failed: exec failed: unable to start container process: exec: "php": executable file not found in $PATH: unknown
big-bear-nocodb nocodb/nocodb:2026.09.0 OCI runtime exec failed: exec failed: unable to start container process: exec: "php": executable file not found in $PATH: unknown
navidrome deluan/navidrome:0.63.2 OCI runtime exec failed: exec failed: unable to start container process: exec: "php": executable file not found in $PATH: unknown
listmonk_app listmonk/listmonk:v6.2.0 OCI runtime exec failed: exec failed: unable to start container process: exec: "php": executable file not found in $PATH: unknown
listmonk_db postgres:17-alpine OCI runtime exec failed: exec failed: unable to start container process: exec: "php": executable file not found in $PATH: unknown
big-bear-dozzle amir20/dozzle:v11.0.0 OCI runtime exec failed: exec failed: unable to start container process: exec: "php": executable file not found in $PATH: unknown
freshrss freshrss/freshrss:1.29.1 8.4.21
adguard-home adguard/adguardhome:v0.107.78 OCI runtime exec failed: exec failed: unable to start container process: exec: "php": executable file not found in $PATH: unknown
documentserver 4934c364adcc OCI runtime exec failed: exec failed: unable to start container process: exec: "php": executable file not found in $PATH: unknown
hugo_mdl ghcr.io/gohugoio/hugo:v0.161.1 OCI runtime exec failed: exec failed: unable to start container process: exec: "php": executable file not found in $PATH: unknown
homepage ghcr.io/gethomepage/homepage:latest OCI runtime exec failed: exec failed: unable to start container process: exec: "php": executable file not found in $PATH: unknown
anaconda3 c0b084f87dd0 OCI runtime exec failed: exec failed: unable to start container process: exec: "php": executable file not found in $PATH: unknown
nginxproxymanager jc21/nginx-proxy-manager:2.13.5 OCI runtime exec failed: exec failed: unable to start container process: exec: "php": executable file not found in $PATH: unknown
db-n8n postgres:14.2 OCI runtime exec failed: exec failed: unable to start container process: exec: "php": executable file not found in $PATH: unknown
big-bear-tandoor ghcr.io/tandoorrecipes/recipes:2.3.5 OCI runtime exec failed: exec failed: unable to start container process: exec: "php": executable file not found in $PATH: unknown
big-bear-tandoor-db postgres:15-alpine OCI runtime exec failed: exec failed: unable to start container process: exec: "php": executable file not found in $PATH: unknown
big-bear-nocodb-db postgres:13 OCI runtime exec failed: exec failed: unable to start container process: exec: "php": executable file not found in $PATH: unknown
big-bear-nocodb-redis redis:8.2.2-alpine OCI runtime exec failed: exec failed: unable to start container process: exec: "php": executable file not found in $PATH: unknown
mkdocs polinux/mkdocs:latest OCI runtime exec failed: exec failed: unable to start container process: exec: "php": executable file not found in $PATH: unknown
empathetic_chorok-dodoc-node-1 registry.gitlab.com/l-atelier-des-chercheurs/dodoc2-node:12.0.7-0 OCI runtime exec failed: exec failed: unable to start container process: exec: "php": executable fil