From php.net, Docker Hub, GitHub and distro pages, read 16 and 22 November 2026 · Updated
PHP 8.2 end of life on 31 December 2026: what happens to your php:8.2 Docker tags
PHP 8.2 stops receiving security fixes from php.net after 31 December 2026. Still pinning php:8.2.35-apache? Check the PHP tag in your Dockerfile. PHP released 8.2.36 on 19 November 2026, and Docker Hub lists php:8.2.36-apache.
Your containers do not stop running on 31 December. What stops is upstream support: php.net's page lists 8.2's security support until 31 December 2026, and its key describes an end-of-life release as one whose users "should upgrade as soon as possible, as they may be exposed to unpatched security vulnerabilities."
This week, check one thing: which php:8.2 tags do your Dockerfiles and compose files build from? php:8.2-apache, php:8.2-fpm, php:8.2-fpm-alpine and pins such as php:8.2.35-apache all count. The search below lists them.
What happened to the php:8.1 tags
PHP 8.1 reached the same point one year earlier, so it is the only example we can read rather than predict. The dates below are from the sources named in each line. They are about 8.1; no source we read says what Docker will do on a particular date for 8.2.
| Date (UTC) | What happened | Source |
|---|---|---|
| 18 December 2025 | PHP 8.1.34, the last 8.1 release, is published. | php.net release list |
| 19 December 2025 | The Docker build repository updates 8.1 to 8.1.34. | docker-library/php 5c037aba |
| 31 December 2025, 24:00 | PHP's release managers announce 8.1 is end-of-life "as of today (Dec 31) at 24:00 UTC". | php.internals announcement |
| 1 January 2026, 20:12 | The Docker build repository commits "Remove EOL 8.1": 88 files changed, 9,022 lines deleted, including the 8.1 folders and the 8.1 entry in versions.json. | docker-library/php 9cf5f245 |
| 2 January 2026, 05:56 | The most recent push to any Docker Hub tag whose name contains 8.1 (8.1.34-trixie). | Docker Hub tag list, newest first |
On 16 November 2026, Docker Hub's last-pushed times for the tags most readers use were:
| Tag | Last pushed (UTC) |
|---|---|
php:8.1-fpm-alpine | 22 December 2025, 14:55 |
php:8.1-apache | 31 December 2025, 02:55 |
php:8.1 | 2 January 2026, 05:54 |
Docker's current build list for php has no 8.1 tag. The 8.1 tags are still listed on Docker Hub; we read the listings and did not pull an image.
What this shows: no 8.1 tag was pushed after 2 January 2026, two days after the end date, and the folders were removed from the build repository the day after it. What it does not show is a schedule. The remove commit says only "Remove EOL 8.1" and links the end-of-life announcement. For 8.2 we read no Docker statement of timing, so this page gives none.
What a tag that is no longer pushed means for your builds, as we read these dates (not a statement from Docker): every build FROM it starts from the same image, with the PHP and the operating-system packages of its last push. An upgrade step in your Dockerfile (apt-get upgrade, apk upgrade) can update the operating-system packages; it does not update PHP, which the image builds from source. For php:8.1-apache, that is the image pushed on 31 December 2025.
Will there be another 8.2 release?
Update, 23 November 2026. This section said 8.2.35 was the newest 8.2 release and that no 8.2.36 had been announced. PHP released 8.2.36 on 19 November 2026. We also added PHP 8.6, released the same day, to the table of tags to move to, and updated what the base image check reports.
PHP released 8.2.36 on 19 November 2026. php.net's announcement calls it a security release. It is the newest 8.2 release on php.net. We found no published calendar of release dates, so whether another 8.2 release comes before 31 December 2026 is not known. For 8.1, the last release came 13 days before its end date, on 18 December 2025.
A full patch pin stays on its patch. php:8.2.35-apache keeps the 8.2.35 build: Docker's build list no longer names it, and Docker Hub's last push of it was on 6 November 2026. To take the new patch, change the pin and keep the variant: FROM php:8.2.35-apache becomes FROM php:8.2.36-apache.
The platforms in a tag can differ by variant, so check yours before you rebuild. docker manifest inspect php:8.2.36-fpm-alpine lists one entry per platform; put your own variant in place of fpm-alpine. On 22 November 2026 Docker Hub had no linux/riscv64 image for php:8.2.36-fpm-alpine, php:8.2.36-cli or php:8.2.36-zts, though php:8.2.35-fpm-alpine had one.
The line tag php:8.2-apache is on the same line as php:8.2.36-apache in Docker's build list, checked 22 November 2026, and Docker Hub gave both tags the same digest that day. The line tag moves to each new 8.2 patch while Docker still builds 8.2. For every PHP tag on the release day, see the 19 November page.
The new patch does not move the end date. PHP 8.2's security support still ends on 31 December 2026, so the move to 8.3 or later in Which tag to move to still applies.
Still getting PHP 8.2 from a distro
Some systems install PHP 8.2 as an operating-system package instead of using Docker's php image. Each row is from the source named, read on 16 November 2026, before 8.2.36 was released; "today" in the table means that day. We read three sources; the table is not a list of every place that packages PHP 8.2.
| Source | PHP 8.2 package today | Support end for the part of the release that carries the package |
|---|---|---|
| Debian 12 (bookworm) | php8.2 8.2.35-1~deb12u1 in bookworm (security) | LTS from 11 June 2026 to 30 June 2028, per Debian's LTS page |
| Alpine 3.22 | php82 8.2.35-r0 (community) | community repository: 1 November 2025, already passed (branch: 1 May 2027) |
| Alpine 3.21 | php82 8.2.35-r0 (community) | community repository: 1 May 2025, already passed (branch: 1 November 2026) |
| Alpine 3.20 | php82 8.2.35-r0 (community) | community repository: 1 November 2024, already passed (branch: 1 April 2026) |
| Alpine 3.23, 3.24 | none: php83, php84, php85 only | n/a |
| Ubuntu | none: a search for php8.2 on packages.ubuntu.com, all suites, returned no results | n/a |
Debian's security tracker lists php8.2 for bookworm only, and Debian 12's list of packages whose security support is limited or ends early does not name it. The same search for php8.3 on packages.ubuntu.com did return results, so the empty result is not a broken search.
Alpine's dates differ by repository. Its releases page says "the main repository is typically supported for 2 years and the community repository is supported until next stable release", and adds: "Security fixes beyond that can be made on request when there are patches available." php82 is in community, so the branch dates in brackets are not dates for the package. Neither Debian's tracker page nor Alpine's package index says that either distribution will keep patching 8.2 after 31 December 2026, so this page does not say they will. The official php:8.2-apache image is not built from Debian 12's package: Docker builds it from PHP's source tarball on Debian 13 (trixie) today. A php:8.2-apache-bookworm tag also exists.
Which tag to move to
Keep your variant and change the version. php:8.2-apache becomes php:8.3-apache, php:8.2-fpm-alpine becomes php:8.3-fpm-alpine. In Docker's build list on 22 November 2026 each of apache, fpm, fpm-alpine, cli and cli-alpine exists for 8.3, 8.4, 8.5 and 8.6.
| PHP | Active support until | Security support until | Migration guide from the version before |
|---|---|---|---|
| 8.3 | 31 December 2025 | 31 December 2027 | 8.2 to 8.3 |
| 8.4 | 31 December 2026 | 31 December 2028 | 8.3 to 8.4 |
| 8.5 | 31 December 2027 | 31 December 2029 | 8.4 to 8.5 |
| 8.6 | 31 December 2028 | 31 December 2030 | 8.5 to 8.6 |
Dates are from php.net's supported-versions page. Going from 8.2 to 8.3 buys one year of security support; 8.4 buys two; 8.5 buys three; 8.6 buys four. That is arithmetic on the table, not advice on which your application can run.
On compatibility we tested one thing, on 13 November 2026: in a scratch folder, changing FROM php:8.2-cli to FROM php:8.3-cli and running the same small JSON smoke test passed on both cached images. That does not show that your application or its extensions work on 8.3, 8.4, 8.5 or 8.6. Read the migration guides for each step and run your own tests.
Find your PHP 8.2 tags
Run this from the root of a repository. It reads Dockerfiles, Containerfiles and compose files, including hidden folders such as .devcontainer, and prints each line that names an official php:8.2 image, with patch pins, variants and digest pins.
out=$(grep -rnE --exclude-dir=.git -i \
--include='*ockerfile*' --include='*ontainerfile*' \
--include='*compose*.yml' --include='*compose*.yaml' \
'^[[:space:]]*(FROM[[:space:]]+(--[^[:space:]]+[[:space:]]+)*|(-[[:space:]]*)?image:[[:space:]]*)["'"'"']?(docker\.io/)?(library/)?php:8\.2([.-][A-Za-z0-9._-]*)?(@sha256:[0-9a-f]{64})?(["'"'"'[:space:]]|$)' . )
[ -n "$out" ] && echo "$out"
echo "php:8.2 references: $(printf '%s' "$out" | grep -c .)"A hit is a line that names a php:8.2 image, not proof that the stage is deployed. Hits under vendor/ or node_modules/ are files from your dependencies, not your own build. The search does not see Kubernetes manifests, CI workflow files, docker run lines, COPY --from=php:8.2-… lines, an image chosen through a variable (FROM php:${PHP_VERSION}), a custom base image, a hosting dashboard or a system package. The base image check reads image: lines from Kubernetes and GitHub Actions files, docker run commands and FROM lines with ARG defaults filled in. For the rest, check your registry or php -v on the machine.
We ran it on Linux, in bash 5 with GNU grep 3.12 and 3.11 and in zsh 5.9 with GNU grep 3.11, on an empty folder (count 0), on a small fixture of Dockerfile and compose lines (count 4, the php:8.3, php:8.20 and mycorp/php:8.2 lines not matched), and on a public repository whose Dockerfile is FROM php:8.2.1-apache-buster (count 1). We did not run it with the BSD grep on macOS or in PowerShell.
Next step
Sources
Read on 16 November 2026 (UTC): php.net supported versions, php.net 2026 news archive, PHP 8.1 end-of-life announcement, docker-library/php, Docker's build list for php, Docker Hub: php tags, Debian security tracker: php8.2, Debian LTS, Alpine releases, Alpine community package index, Ubuntu package search. Read on 22 November 2026 (UTC): PHP 8.2.36 release announcement, php.general: PHP 8.2.36 Released, php.net supported versions, Docker's build list for php, Docker Hub tag records for php:8.2.36-apache, php:8.2-apache, php:8.2.35-apache, php:8.2.36-fpm-alpine, php:8.2.36-cli, php:8.2.36-zts and php:8.2.35-fpm-alpine.
Send corrections to hello@cybernative.ai. We correct the page and list each correction here with its date.