Checks / Docker and containers
A container image has an operating system past its end of life
- Check
image.os_eol- Severity
- high
- Runs
- on our side, with the data of the report
- Looks at
- Image OS release against end-of-life dates
What the check looks at
The agent sends the package list of every running container image, with the operating system release that the
scanner found in the image (for example alpine 3.20.10 or debian 11.11). The service compares that release
with the end-of-life dates in the vulnerability database of Trivy and reports each image whose release has
reached its end, with the image name and the containers that use it.
The host and the images are checked separately. A current Ubuntu host can run an image built on Debian 11; the host check is host.os_eol.
Why it matters
After the end of life, the distribution stops publishing security fixes for that release. Every new
vulnerability in OpenSSL, glibc, zlib or any other package of the image stays open, and an apt-get upgrade
or apk upgrade in the Dockerfile finds nothing to install. A scanner result also means less. For an image on
alpine:3.20, Trivy 0.75 warned "This OS version is no longer supported by the distribution" and "The
vulnerability detection may be insufficient because security updates are not provided".
Alpine releases are a common case. Each branch gets fixes in its main repository for about two years, so an
image built on alpine:3.20 in 2024 is past its end as of November 2026, although it still runs.
How to fix it
For images you build, change the base release in the FROM line, rebuild and test:
| Family | Example of an old line | Supported release as of November 2026 |
|---|---|---|
| Debian | FROM debian:bullseye-slim |
debian:trixie-slim (13) or debian:bookworm-slim (12, LTS) |
| Ubuntu | FROM ubuntu:20.04 |
ubuntu:24.04 or ubuntu:26.04 |
| Alpine | FROM alpine:3.20 |
alpine:3.24 |
| Language images | FROM python:3.12-slim-bullseye |
a tag without the old release name, or -trixie |
Package names can change between releases, so read the build log. Then rebuild without cache so every layer picks up the new release:
docker build --pull --no-cache -t example/app:1.4.3 .
For images you pull from someone else, look for a newer tag of the same image that uses a supported base. If the project has not published one, ask the maintainers or switch to an image that is maintained.
How to check the fix
Read the release in the image:
docker run --rm --entrypoint cat example/app:1.4.3 /etc/os-release
Images without cat (distroless, scratch) need a scanner. trivy image example/app:1.4.3 prints the release
next to the image name and warns when it is no longer supported; with --exit-on-eol 1 it also returns exit
code 1, which fails a CI job. After you redeploy the container, the next report of the agent clears the
finding.
When a warning is fine
Rarely. A container that runs a batch job on data you control and never talks to the network carries less risk, and an image you keep for one more week until its replacement is tested is a plan. Everything that serves requests, especially from the internet, needs a supported base.
Sources
- Alpine Linux releases — support period per branch.
- Debian security FAQ and LTS — support periods of Debian releases.
- Ubuntu release cycle
- Trivy documentation, supported OS — the scanner reads the release from the image and knows end-of-life dates.