What Small Container Base Images Remove - Who Ships the Fixes and Why Scanners Differ

First Published:
Last Updated:

Changing the FROM instruction in a Dockerfile to a smaller base image can reduce image size and alter the number of issues reported by scanners. However, the components removed by these "smaller" images vary from image to image. Debian slim removes documentation but retains the shell and apt. Alpine replaces libc with musl and uses BusyBox for the shell. Distroless removes the shell and package manager. The channels and timelines for receiving security updates also differ depending on the image. The differences in the number of issues reported by scanners do not necessarily reflect differences in the image's overall security.

This article compares several small container images – Debian slim, Alpine, distroless, Chainguard Containers, Docker Hardened Images (DHI), and Amazon Linux 2023 (AL2023) – by examining what they remove, the channels and timelines for receiving updates, their tag management practices, and how scanners interpret them. The data presented is based on the wording of each publisher's pages and verified by pulling and inspecting the images locally in Docker. This article does not recommend which image to choose.

This article is based on documents read on December 5, 2026, and images obtained on the same date. Each publisher's support pages and vulnerability databases are subject to daily changes. Pricing is not discussed.

Related articles on this site:

Table of Contents

  1. 1. Scope and Assumptions
  2. 2. Three Meanings of "Small"
  3. 3. Delivery Paths and Deadlines for Security Fixes
  4. 4. Tag Management and Version Pinning
  5. 5. Reasons for Discrepancies in Scanner Results
  6. 6. Demo: What Pulling the Images Showed
  7. 7. Things to Verify Before Changing the Base Image
  8. 8. Frequently Asked Questions About Smaller Base Images
  9. 9. Summary
  10. 10. References

1. Scope and Assumptions

This chapter first defines the intended audience, the scope of this article, the consulted resources, the notation used, and the terminology. The conclusions come first; there are seven:

  • The term "small" encompasses three distinct meanings: removing files (as with Debian slim), replacing libc and core commands (as with Alpine), and removing the shell and package manager (as with distroless and Chainguard's latest images). DHI runtime images remove the package manager, but some keep a shell. AL2023 minimal reduces the number of packages and replaces dnf with microdnf (see Chapter 2).
  • Debian slim retains both the shell and apt. It removes files such as documentation, man pages, and locales (see Chapters 2 and 6).
  • Fixes arrive when the package publisher fixes the package, the image publisher rebuilds the image, and the tag points to a new digest. The deadlines differ by publisher, and some publishers do not state a deadline (see Chapter 3).
  • Tag management also differs. DHI does not use a latest tag. Chainguard's free images are limited to latest and latest-dev tags. Distroless includes the Debian version in the tag name (see Chapter 4).
  • Scanners read the package database within the image and the /etc/os-release file's ID to determine which vulnerability data to retrieve. Some DHI images return ID=dhi. The Docker documentation states that scanners that do not read the DHI advisory feed may produce inaccurate results when analyzing these images, and that Trivy does not read this feed (see Chapter 5).
  • Differences in the number of reported vulnerabilities can also stem from variations in counting methods, data sources, and handling of VEX (Vulnerability Exploitability eXchange). A smaller number of reported vulnerabilities does not necessarily indicate that an image is secure (see Chapters 5 and 6).
  • The values in this article are tied to the pages as of December 5, 2026, the digests of images obtained on that same day, the versions of the scanners used, and the dates of the vulnerability databases (see Chapter 6).

1.1 Target Audience

  • Individuals who are considering changing the FROM instruction in their Dockerfile to a smaller base image.
  • People experiencing increases or decreases in the number of scan results after changing their image, without understanding the reason why.
  • Those who are deciding on the base image for their Lambda container images, or for tasks in ECS and EKS.

It is assumed that readers are familiar with Dockerfiles, multi-stage builds, and CVE scanning.

1.2 Scope: What We Address, and What We Do Not

This article focuses on the following five areas:

  • What each image removes (shell, package manager, libc, documentation, default user).
  • The channels and timelines for receiving security updates.
  • Tag management and version pinning.
  • The reasons behind discrepancies in scanner results (package database, /etc/os-release, advisory feeds, VEX).
  • Records of pulling and verifying images locally in Docker.

This article does not address the following:

  • Recommendations on which images to choose, or performance comparisons.
  • Signing, SBOM (Software Bill of Materials), and provenance mechanisms. These are handled by Software Supply Chain Security on AWS.
  • The support timelines for Debian and Ubuntu. This is handled by Debian and Ubuntu Support Timeline.
  • Pricing for paid editions (Chainguard's paid images, DHI's Select and Enterprise, Amazon ECR Public's premium content).
  • Windows containers and Red Hat Universal Base Image.
  • Specific attack procedures for individual CVEs.

1.3 Checked Date and Materials Read

Checked date: 2026-12-05. The following materials were reviewed:

  • Docker Official Images documentation (Debian and Alpine pages on docker-library/docs), and the list of exclusions for the slim version of debuerreotype used to create Debian images.
  • Debian pages (release list, security FAQ, LTS).
  • Alpine Linux pages (release list, About).
  • Distroless GitHub repository (README.md, SUPPORT_POLICY.md, RELEASES.md, base/README.md, and the commit history of SUPPORT_POLICY.md).
  • Chainguard documentation (Overview, container variants, choosing a base container, glibc vs musl, lifecycle and EOL, EOL grace period, versions, FAQ).
  • Docker Hardened Images documentation (index, explore, responsibility, scanner integrations, security concepts, the how-to pages for use, scan, and mirror, migration, release notes), and the image definitions on GitHub's docker-hardened-images/catalog.
  • Amazon Linux 2023 user guide (minimal container image, comparison of container image packages, release cadence), and What's New.
  • Trivy documentation (OS support, Debian, VEX), Grype README, and Docker Scout documentation (advisory database sources, quickstart).

When reading pages that publishers wrote about their own products, specifications were separated from marketing language. This article only extracts information regarding contents, deadlines, tags, and feed mechanisms. Evaluative terms such as "hardened," "secure," or "zero CVE" are not presented as factual claims.

1.4 Statement Labels

This article attaches one of the following four labels to each statement:

LabelMeaning
StatedFound in a publisher's document, README file, release page, or AWS user guide. The text names the document.
Not statedNot found within the pages reviewed for this article. This does not constitute proof of non-existence.
InferenceDerived from the descriptions found on the pages.
MeasuredVerified through a demonstration of Chapter 6 on December 5, 2026. The value is associated with the specific digest and the date of retrieval.

The Not stated label is applied only to items that could not be found after searching three times with different search terms. Do not interpret Not stated to mean "unavailable" or "impossible." The Measured label records what the image with that digest showed, and does not guarantee that the same behavior will apply to subsequent builds with the same tag.

1.5 Usage of Terms

  • Base Image: The image specified in the FROM instruction of a Dockerfile.
  • Publisher: The entity that creates and publishes images (e.g., maintainers of Docker Official Images, Google's distroless, Chainguard, Docker, AWS).
  • Package publisher: The entity that fixes and ships packages (e.g., Debian, Alpine, Wolfi, Amazon Linux).
  • Fix: The process where security fixes are applied, first to packages, then to image rebuilds, and finally to tags and digests. This article writes about it separately from findings disappearing from a scanner's output.
  • Runtime vs. Dev: Images stripped of shells and package managers versus images that include them. Chainguard uses latest and latest-dev, DHI uses runtime and -dev, and distroless uses latest and debug.
  • Minimal: This article uses this term only as the name of the AL2023 image, separate from the general word "small."

2. Three Meanings of "Small"

This chapter lists what each image removes. Even when using the word "small," the removed elements can be categorized into three distinct types.

2.1 Table 1: What Each Image Removes

ImageRemovedRetainedlibcBasis
Debian slim (debian:13-slim)Documentation, man pages, info, locales, etc.Shell, apt, dpkgglibcStated (Docker Official Images page, debuerreotype list), retained items are Measured.
Alpine (alpine:3.25)glibc and basic GNU commands (replaced with musl and BusyBox)BusyBox shell, apkmuslStated (Docker Official Images page, Alpine About), retained items are Measured.
Distroless (static-debian13, base-debian13)Shell, package manager, other programsstatic includes CA certificates, tzdata, /etc/passwd. base adds glibc and libssl.None for static, glibc for baseStated (distroless README and base/README.md), retained items are Measured.
Chainguard (latest)Package manager, shell, development toolsItems required per imageglibc (Wolfi)Stated (container variants, glibc vs musl), glibc-dynamic is Measured.
Chainguard (latest-dev)—Package manager, shellglibcStated (container variants), glibc-dynamic is Measured.
DHI (runtime)Package manager, shell (varies by image)Items required per imageDebian-based includes glibc, Alpine-based includes muslStated (how-to use, migration, explore), debian-base is Measured.
DHI (-dev)—Shell, package managerSame as aboveStated (catalog README), debian-base is Measured.
AL2023 minimal (2023-minimal)Many packages. dnf (written in Python)bash, microdnf, rpmglibcStated (AL2023 user guide), retained items are Measured.

The wording behind each row is quoted page by page in the following sections.

2.2 Removing Files: Debian Slim

The Docker Official Images page for Debian describes the -slim tag as follows (Stated):

These tags are an experiment in providing a slimmer base (removing some extra files that are normally not necessary within containers, such as man pages and documentation), and are definitely subject to change.

The term "such as" in this sentence introduces examples. The page does not state that only man pages and documentation are removed. The same page directs users to debuerreotype-slimify for further details. The exclusion list for debuerreotype (.slimify-excludes) includes items such as /usr/share/doc/*, /usr/share/info/*, /usr/share/locale/*, and /usr/share/man/* (Stated). The inclusion list (.slimify-includes) includes /usr/share/doc/*/copyright (Stated). Therefore, the "slim" version retains files related to the licenses of packages.

Neither page mentions removing the shell or apt (Not stated). The demonstration in Chapter 6 showed that /bin/sh, /bin/bash, apt, and dpkg were retained in debian:13-slim (Measured). Debian slim is not an image that is close to a distroless image. Because the package database (/var/lib/dpkg/status) is also retained, scanners can count packages using the same methods as with a standard Debian installation (Inference).

2.3 Replacing libc and Basic Commands: Alpine and Wolfi

The Docker Official Images page for Alpine describes it as "a Linux distribution built around musl libc and BusyBox" (Stated). The Alpine "About" page also states that it is "based on musl libc and busybox" (Stated). Alpine uses musl instead of glibc, and includes basic commands through BusyBox. The apk package manager remains (Measured).

Alpine's small size is not due to removing files; rather, it is the result of replacing the libc and basic commands (Inference). Binaries built with glibc as a dependency may not function correctly without modification. The DHI explore page categorizes Debian as belonging to the glibc lineage, while Alpine is categorized under the musl lineage (Stated).

Wolfi, the foundation for Chainguard's images, uses the same apk package manager as Alpine, but utilizes glibc instead of musl. Chainguard's glibc vs musl page states that when creating Wolfi, they "elected to have it use glibc instead of another implementation like musl" (Stated). Using apk and using musl are separate considerations.

2.4 Removing the Shell and Package Manager: Distroless, Chainguard, and DHI

The distroless README states (Stated):

"Distroless" images contain only your application and its runtime dependencies. They do not contain package managers, shells or any other programs you would expect to find in a standard Linux distribution.

base/README.md lists the contents of static as CA certificates, the /etc/passwd entry for the root user, /tmp, and tzdata (Stated). base adds glibc and libssl to this. Debian 13's base also includes zlib and libzstd, which libssl depends on (Stated). To provide a shell when needed, the README indicates that the :debug tag can be used, stating that it "provides a busybox shell to enter" (Stated). In the demonstration in Chapter 6, the BusyBox in base-debian13:debug was located in /busybox/ rather than /bin, and the ENTRYPOINT was /busybox/sh. Neither of these was present in base-debian13:latest (Measured).

The Chainguard container variants page describes the standard images as follows (Stated):

Chainguard's standard container images do not contain package managers such as apk, shells such as b/a/sh, or development utilities such as Git or text editors.

The same page states that development images are designed to "contain familiar utilities such as package managers and shells" and are tagged with :latest-dev (Stated). In Chapter 6, the demonstration showed that the glibc-dynamic:latest image lacked both a shell and apk, while the latest-dev image included bash, BusyBox, and apk. Both images used the default user 65532 (Measured).

The DHI migration documentation states in a table that "Runtime images don't contain package managers." (Stated). Regarding shells, the how-to use page states that "some variants don't include a shell or package manager, and may run as a non-root user by default" (Stated). Whether an image includes a shell varies depending on the image itself. According to the definition of the debian-base runtime image on GitHub's docker-hardened-images/catalog (as of December 5, 2026), the image includes bash but not apt (Stated). The demonstration in Chapter 6 also showed that dhi.io/debian-base:trixie included bash but not apt (Measured). DHI runtimes cannot be broadly categorized as images without shells.

2.5 Reducing the Number of Packages: AL2023 Minimal

The AL2023 user guide states that the minimal container image was designed as "a minimal set of packages, not a convenient set of packages" (Stated). The same page notes that a key difference is the use of microdnf instead of dnf, which is written in Python (Stated). The package manager remains. A page comparing the packages in the AL2023 container image indicates that the minimal container includes bash (Stated; the versions in the table are those from when the page was created). In the demonstration in Chapter 6, the 2023-minimal image included bash and microdnf, and /usr/bin/dnf was a symbolic link to microdnf (Measured).

The AL2023 user guide also states that the minimal container image serves as the foundation for the Lambda provided.al2023 runtime (Stated). The path for Lambda base image updates to reach functions is detailed in Section 4.3 of Customer-Managed Runtimes on AWS Lambda.

2.6 Figure 1: What Remains in Each Image

What Each Small Base Image Keeps and Removes
What Each Small Base Image Keeps and Removes
Figure 1 shows the contents of each image, as verified in Chapter 6, in five rows: shell, package manager, libc, the number of entries in /usr/share/doc and man, and the default user (Measured). Green indicates items found, while blue indicates items not found. The values correspond to those in Table 5 and are associated with the digest pulled on 2026-12-05. The default user refers to the value of Config.User obtained from docker image inspect.

3. Delivery Paths and Deadlines for Security Fixes

This chapter outlines who ships security fixes, through what channels, and by what deadlines.

3.1 Table 2: Fix Paths and Deadlines

ImageResponsible for Package UpdatesResponsible for Image Rebuilds and FrequencyDeadline (Page Reference)Basis
Debian slimDebian (Security Team, later LTS Team)Maintainers of Docker Official Images. Frequency: Not stated5 years per release (3 years standard support and 2 years LTS). Debian 13 EOL: 2028-08-09, LTS end: 2030-06-30Stated (Debian release page)
AlpineAlpine (main: typically 2 years, community: until next stable release)Maintainers of Docker Official Images3.25: 2028-11-01. 3.21 passed its main deadline on 2026-11-01; after that, support is "on request."Stated (Alpine release page)
distrolessDebianGoogle's distroless repository. Built on each commit.Debian 13 static, base, etc.: "debian 14 release day + 1yr"; java*, node*, python*: "+ 3mo"Stated (SUPPORT_POLICY.md, RELEASES.md)
ChainguardChainguard (Wolfi packages)Chainguard. Images under maintenance are rebuilt daily.End-of-life grace period: up to 6 months (for customers). Free images only receive the latest build.Stated (versions, EOL grace period, Overview)
DHIDocker (DHI packages)DockerNo guaranteed remediation timelines for Community. No lifecycle page found.Stated (responsibility), lifecycle: Not stated
AL2023 minimalAmazon LinuxAWS2029-06-30 (standard support ends 2027-06-30)Stated (release cadence)

3.2 Debian and Distroless

The Debian release page describes the release life cycle as follows (Stated).

The Debian release life cycle encompasses five years: the first three years of full support followed by two years of Long Term Support (LTS).

The security FAQ states that the security team supports the stable release for "three years after its release" (Stated). The LTS page states that a different group, not the Debian security team, supports Debian LTS (Stated). While the timeframe is the same (five years), different teams ship fixes during the initial three years and the subsequent two years. The table on the release page lists the End of Life (EOL) for Debian 13 as 2028-08-09, the end of LTS as 2030-06-30, and designates Debian 12 as "Current oldstable release, under LTS support" (Stated, the table as of 2026-12-05). The timeline is left to Debian and Ubuntu Support Timeline.

Distroless builds images from Debian packages. The README states that "Distroless tracks the upstream Debian releases" and describes a process where GitHub Actions detects package updates and opens pull requests (Stated). RELEASES.md states that images are "automatically built and pushed every commit" (Stated). Fixes arrive after Debian fixes the packages, the distroless repository incorporates those fixes, and the build process runs (Inference).

The end-of-life (EOL) for distroless does not align directly with Debian's EOL. SUPPORT_POLICY.md estimates the EOL for Debian 13 images based on image type (Stated, the version as of 2026-12-05):

ImageDebian 13 EOL
static, base, base-nossl, ccdebian 14 release day + 1yr
java*, node*, python*debian 14 release day + 3mo

The commit "Remove debian12 builds" on September 10, 2026 removed the Debian 12 builds (Stated, the commit history for SUPPORT_POLICY.md). At that point, Debian 12 was within its Long Term Support (LTS) period. Even though Debian's LTS support continues, the distroless project stops building new -debian12 images (Inference).

3.3 Alpine

Alpine's release page states (Stated):

The main repository is typically supported for 2 years and the community repository is supported until next stable release.

The subsequent text indicates that security updates "can be made on request when there are patches available" (Stated). According to the table on the same page, the deadline for version 3.21 is 2026-11-01, and the support level is "on request" (Stated, the table as of 2026-12-05). Version 3.25 branched on 2026-12-03 and has an end-of-life date of 2028-11-01.

Packages installed via apk from the community repository have a shorter lifespan than those from the main repository (Inference). It is necessary to verify the end-of-life dates for both the base image version and any packages installed on top of it.

3.4 Chainguard

The Chainguard versions page states the following (Stated):

Actively maintained container images are rebuilt on a daily cadence, so you can be sure the container image you are using is up to date.

This daily rebuild applies to images currently under maintenance. Regarding support lifecycles, the EOL grace period page states that after the upstream provider ends support for a version, Chainguard keeps rebuilding the image for up to six months after its primary package reaches EOL (Stated). This grace period is offered "to all Chainguard Containers customers" (Stated). The same page clarifies that there are no exceptions to this six-month limit (Stated).

Regarding the scope of free images, the Overview states (Stated):

Free images are limited to the latest build of a given image, tagged as latest and latest-dev.

The versions page indicates that for free images, :latest is available, and :latest-dev may be available "In some cases" (Stated). How strongly latest-dev is described varies by page. Paid Production images have SLAs for fixes (Stated, Overview).

3.5 DHI

The DHI responsibility page states (Stated):

DHI Select and DHI Enterprise include SLA commitments. DHI Community offers a secure baseline but no guaranteed remediation timelines.

The free Community edition does not include guaranteed remediation timelines. The build process page states the same about Community (Stated).

A page that defines how long DHI versions are supported was not found as of the checked date (Not stated). There were no lifecycle pages in the DHI documentation index and sitemap, and the following URLs returned a 404 error: /dhi/core-concepts/lifecycle/, /dhi/explore/lifecycle/, and /dhi/explore/security-concepts/lifecycle/. The relevant information is found in the following three locations:

  • The table in the DHI index lists Extended Lifecycle Support as an add-on for Enterprise and mentions updates after End-of-Life as a feature of the paid editions (Stated). The how-to mirror page states that, when mirroring with a "DHI Select or Enterprise" subscription, the ELS variants are available with "requires add-on" (Stated). The wording varies between pages.
  • The description on the Docker Hub catalog page describes the "Type" column in the variant table as "The support lifecycle status of the variant" (Stated, the tools hub page).
  • The GitHub catalog definition for debian-base includes the following in its dates section: end-of-life: "2028-08-09" (Stated, the definition as of 2026-12-05). This date is the same as the End-of-Life date for Debian 13.

This article cannot state from the pages how long the DHI Community images will continue to be rebuilt. Check the display for each variant in the catalog before using it.

3.6 AL2023

AL2023's release cadence page states that AL2023 will be supported until June 30, 2029 (Stated). Standard support ends on June 30, 2027, and the maintenance period after it ships only security updates and critical bug fixes (Stated).

Amazon Linux 2027, the next version, was announced in September 2026 as a public preview (Stated, What's New). It was in preview status as of the checked date.

4. Tag Management and Version Pinning

This chapter lists what tags point to and how versions can be pinned. A fix arrives when a tag points to a new digest and your build takes in that digest.

4.1 Table 3: Tag Management

ImageTag FormatVersion PinningBasis
Debian slim13-slim, trixie-slim, date-based tags like trixie-20261123-slim, etc.Pin versions using date-based tags or digests.Stated (list of tags in docker-library/official-images)
Alpine3.25.0, 3.25, 3, latestPin versions using tags or digests.Stated (same as above)
distrolesslatest, nonroot, debug, debug-nonroot. Image names include -debian13.No version tags are used; versions are pinned using digests.Stated (README)
Chainguard (free)latest, latest-devVersion tags are for the paid edition. Versions are pinned using digests.Stated (Overview, versions)
DHIVersion tags (e.g., trixie, trixie-dev). No latest tag is used.Pin versions using tags or digests.Stated (migration)
AL2023 minimal2023-minimal, minimalThe 2023-minimal tag remains associated with AL2023.Stated (AL2023 User Guide)

The DHI migration page states (Stated):

Note that DHI does not have a latest tag in order to promote best practices around image versioning.

It can be inferred that without a tag, attempting to pull using FROM dhi.io/<name> will fail (Inference).

The distroless README states that tags other than those listed in the table are "considered deprecated and are no longer updated" (Stated). The names that omit the Debian version currently select -debian13, but this changes with the next Debian release (Stated). Including the Debian version in the name ensures that the base image will not be changed when Debian 14 is released.

The AL2023 user guide states that 2023-minimal always refers to the latest AL2023 minimal image, and that minimal can be updated to an Amazon Linux newer than AL2023 (Stated). Given that Amazon Linux 2027 is currently in preview, Dockerfiles using the minimal tag may need to be adjusted as the base version evolves in the future (Inference).

4.2 Pinning with a Digest

Tags are dynamic, while digests are not. When you pin FROM to a digest, the build will be reproducible, but you do not receive the images that the publisher rebuilds (Inference). To receive fixes, you need a mechanism to update the digest (such as a bot that manages dependencies).

The process of importing a base image into your own registry and recording its digest is detailed in Section 5.4 of Software Supply Chain Security on AWS.

Chainguard's free images only provide the latest build of latest and latest-dev, so you cannot use version tags to remain on older builds (Inference). Pinning a digest allows you to keep using the same image, but that specific build will not be rebuilt.

5. Reasons for Discrepancies in Scanner Results

This chapter explains why discrepancies can occur in scanner results when processing the same image, starting from the data the scanner reads.

5.1 What Scanners Read

Vulnerability scanners for operating system packages generally operate in the following order (Inference, assembled from each scanner's documentation).

  1. Determine the operating system within the image. This involves reading the ID and version from /etc/os-release.
  2. Read the installed packages and their versions from the package database. For Debian-based systems, this uses the dpkg database; for Alpine and Wolfi, it uses the apk database; and for Amazon Linux, it uses the rpm database.
  3. Compare the identified packages and versions against vulnerability data specific to the operating system (e.g., Debian Security Bug Tracker, Alpine secdb, Amazon Linux Security Center, and feeds from Wolfi and Chainguard).
  4. Apply VEX and ignore rules to the results.

Trivy's page detailing OS support lists the supported operating systems and package managers in a table (Stated). Wolfi and Chainguard use apk; Google Distroless uses apt/dpkg; and Amazon Linux is listed as 1, 2, and 2023. On the page as of the checked date, Alpine's supported versions are "2.2 - 2.7, 3.0 - 3.22, edge" (Stated). Docker Scout's page on advisory database sources lists data sources including Debian Security Bug Tracker, Alpine secdb, Amazon Linux Security Center, Chainguard Security Feed, and Wolfi Security Feed (Stated).

5.2 OS Detection Impacts Results

In step 1, the OS detection process determines which data is considered. The Chainguard choosing a base container page states that for the paid chainguard-base image, Chainguard reports that it is a Chainguard image, which "scanners use to determine what security feeds to reference" (Stated).

The DHI scanner integrations page states that images that use the feed return ID=dhi in /etc/os-release (Stated). The same page also notes that scanners that do not read the feed may produce inaccurate results for images that use the feed. This could result in vulnerabilities being incorrectly identified as present or absent (Stated). In the demonstration in Chapter 6, both dhi.io/debian-base:trixie and trixie-dev returned ID=dhi in their /etc/os-release files. The same images also contained the /etc/debian_version file (Measured). Trivy identified the OS of these images as "debian 13.8," while Grype identified it as "dhi 13" (Measured). Different scanners produced different OS detections based on the same files.

For images without a package database, step 2 has nothing to count. The distroless static image includes a small number of Debian packages, and the Trivy documentation states that it handles Google Distroless images using apt/dpkg (Stated). In the demonstration in Chapter 6, the package database of the distroless images was not located in /var/lib/dpkg/status, but rather in individual files under the /var/lib/dpkg/status.d/ directory. static-debian13 recorded 6 packages, while base-debian13 recorded 10 packages (Measured). Because the location of the package database differs from a standard Debian installation, the scanner's ability to locate and read this directory can change the results (Inference). In Chapter 6, Trivy and Grype reported 29 rows on base-debian13, while Docker Scout reported 0 (Measured). The reason for Docker Scout's 0 findings is not verified in this article.

5.3 The DHI Advisory Feed and VEX

The scanner integrations page states that images that use the feed should be scanned with a scanner that reads it, and all other images with a scanner that supports VEX (Stated). The same page also states that scanners use the advisories of the upstream distribution for any Alpine or Debian packages added by the user to their own images (Stated). The feed contains vulnerability data for DHI's operating system packages, published in the OSV format (Stated). Not all images use the feed; Docker is gradually migrating images to use the feed (Stated, the Q4 2026 release notes).

The pages describe how each scanner handles them as follows (Stated, scanner integrations and the how-to scan page):

  • The scanner integrations page lists Docker Scout and Grype as scanners that read the advisory feed.
  • Regarding Trivy, the how-to scan page states, "Trivy doesn't read the DHI advisory feed," and clarifies that Trivy can only be used with images that do not use the feed.
  • Docker Scout automatically applies VEX. Grype applies VEX using the --vex flag, specifying a local VEX file. Trivy can apply VEX from VEX Hub or a local VEX file.
  • For images that use the feed, scanners reading the feed can report vulnerabilities in the operating system packages without needing to apply VEX. Docker will continue to publish VEX.

VEX documents provide assessments indicating whether a particular vulnerability affects an image. Applying VEX excludes findings that have been assessed as not applicable from the results (Inference). The number of findings reported can vary depending on whether VEX is applied to the same image.

5.4 Table 4: Scanner Comparison

ItemTrivyGrypeDocker Scout
DHI advisory feedDoes not readReadsReads
DHI VEXVEX Hub or local fileLocal file via --vexAutomatically
Debian SeverityUses Debian urgencyNot covered in this articlePrefers the package publisher's data
BasisStated (Trivy Debian page, DHI scan page)Stated (DHI scanner integrations, Grype README)Stated (advisory database sources, DHI scanner integrations)

The Trivy Debian page states that even if a CVE is marked as Critical by NVD, it will be displayed as Low if Debian's urgency is Low (Stated). The same page lists "Fixed," "Affected," "Fix Deferred," and "End of Life" as handled states, and does not indicate support for "Under Investigation" or "Will Not Fix" (Stated). Docker Scout uses the severity from the package publisher's data that matches the package; if there is none, it falls back to NIST data (Stated). Because the methods for assigning severity levels differ, the number of findings within each severity level may also vary.

5.5 The Counting Units Differ Too

Trivy and Grype count each package and vulnerability pair as one row (Measured, the output format in Chapter 6). If a single CVE affects three packages, it appears as three rows. Docker Scout, on the other hand, separates results from rules, with the rules corresponding to vulnerability IDs. In the demonstration in Chapter 6, debian:13-slim reported a single vulnerability as a single result, listing multiple locations (43 results, 43 rules), while dhi.io/debian-base:trixie reported results on a per-package basis (101 results, 43 rules) (Measured). Even when using the same scanner and format, the counting unit is not always consistent. Table 6 distinguishes between the number of rows or results and the number of unique vulnerability IDs, excluding duplicates.

A low number of findings can come from any of the following (Inference):

  • A limited number of packages.
  • The scanner is unable to determine the OS, and therefore is not counting packages.
  • The scanner does not read the location where the package database is.
  • The scanner's database does not yet contain data for that specific OS version.
  • VEX excluded the vulnerability.
  • The scanner is not displaying vulnerabilities that the package publisher has decided not to fix.

Conversely, if the database dates differ, the same package and vulnerability may be displayed as patched or as not patched. The number of findings alone is not sufficient to distinguish between these possibilities. It is necessary to consider the scanner version, the database date, and the result of the OS detection.

5.6 Figure 2: How a Fix Reaches a Scanner

Where a Fix Travels Before a Scanner Sees It
Where a Fix Travels Before a Scanner Sees It
Figure 2 illustrates the path by which a fix reaches the scanner's results. The top row, numbered 1 through 4, shows these steps: the package fix, the image publisher's rebuild, the tag pointing to a new digest, and your build incorporating that digest. If you pin a digest, what step 4 incorporates does not change. The bottom row, numbered 5 through 7, shows how the scanner reads /etc/os-release's ID and the package database, then compares this information against one of these: the package publisher's vulnerability data, the DHI advisory feed, or NVD CPE. The scanner then applies VEX and exclusion rules to generate findings. As the note below says, the scanner's version and the database date also affect these findings.

6. Demo: What Pulling the Images Showed

This chapter records the results of pulling and verifying each image locally in Docker on December 5, 2026. No AWS resources were used.

6.1 Environment and Procedure

  • Docker 29.10.1 (client and server), platform linux/arm64
  • Scanners: Trivy 0.77.0 (official container aquasec/trivy:0.77.0, database updated 2026-12-05T01:01:14Z), Grype 0.122.1 (official container anchore/grype:v0.122.1, database created 2026-12-04T06:21:49Z, schema v6.1.10), Docker Scout v1.28.0
  • Execution time: 2026-12-05T03:17:18Z to 03:21:58Z (UTC)

The verification was performed without launching a shell in the containers. docker create created a container, and the list of files from docker export showed the package managers, shells, dynamic linkers, and package databases. This method can also be used to verify images that do not include a shell. The default user and digest values are those obtained from docker image inspect. The size was determined by measuring the layers exported using docker save, as described in Section 6.2.

docker pull --platform linux/arm64 debian:13-slim
docker image inspect debian:13-slim --format '{{json .Config.User}} {{json .Config.Entrypoint}} {{index .RepoDigests 0}}'
cid=$(docker create --platform linux/arm64 debian:13-slim /not-run)
docker export "$cid" | tar -tf - | grep -E '^(usr/)?bin/(sh|bash|apt|dpkg)$'
docker rm "$cid"

The commands above illustrate one method for verifying an image. In the demonstration, the same list of files was read using Python, and symbolic links were followed to determine their presence or absence. Searching only in /bin and /usr/bin misses BusyBox in the distroless :debug image, as BusyBox is located in /busybox/. The initial assessment in the demonstration also missed this, so it was re-verified using the files from docker save and the Config.Entrypoint (Measured). The presence of a shell is determined by examining both Config.Entrypoint and PATH.

The scan involved passing files created using docker save (containing the same image) to both Trivy and Grype, while providing Docker Scout with the corresponding digest. The DHI how-to guide specifies that when using Grype to analyze the image with ID=dhi, use Grype 0.122.0 or later with a current database (Stated). The demonstration used Grype version 0.122.1, which meets this requirement. The output was collected in both JSON and SARIF formats, and the number of findings was counted. For the DHI image, the intention was to extract VEX data using docker scout vex get and then apply it to both Trivy and Grype. However, when attempting this with both images, the command exited with a code of 2, and it was not possible to obtain the counts with VEX applied (Measured). Because account information can appear in the standard error output, it was not saved, and the cause is not recorded. The handling of VEX in this article is solely based on the description provided in Section 5.3.

6.2 Table 5: What Remains

The following table lists the files that remain within each image (Measured). The file list from docker export showed whether shells, package managers, and dynamic linkers were present, following symbolic links as necessary. The size is calculated as the total size of the expanded tar archive produced by docker save, including files that were overwritten by upper layers. To ensure consistency, the table displays the size of the expanded files, regardless of the compression method (gzip or zstd).

ImageSize (MB)Config.UserIDShellPackage ManagerlibcPackage Database (Count)/usr/share/doc, man Entries
debian:13-slim103.1Empty (root)debianbash, shapt, apt-get, dpkgglibc/var/lib/dpkg/status (78)78, 0
alpine:3.258.9Empty (root)alpineBusyBox (sh, ash)apkmusl/lib/apk/db/installed (16)None, None
distroless/static-debian13:latest3.40debianNoneNoneNone/var/lib/dpkg/status.d/ (6)20, 0
distroless/base-debian13:latest36.40debianNoneNoneglibc/var/lib/dpkg/status.d/ (10)37, 0
distroless/base-debian13:debug37.90debianBusyBox (/busybox/sh)Noneglibc/var/lib/dpkg/status.d/ (10)37, 0
chainguard/glibc-dynamic:latest10.465532wolfiNoneNoneglibc/usr/lib/apk/db/installed (7)None, None
chainguard/glibc-dynamic:latest-dev69.065532wolfibash, BusyBoxapkglibc/usr/lib/apk/db/installed (45)4, None
amazonlinux:2023-minimal124.6Empty (root)amznbash, shmicrodnf (dnf is that link), rpmglibc/var/lib/rpm (88)118, 147
dhi.io/debian-base:trixie60.165532dhibash, shNoneglibc/var/lib/dpkg/status (30)32, 520
dhi.io/debian-base:trixie-dev101.80dhibash, shapt, apt-get, dpkgglibc/var/lib/dpkg/status (69)71, 618

The ID is a value from /etc/os-release. "None" indicates that the directory does not exist. The /usr/share/doc directory for debian:13-slim had 78 items, consisting of 76 copyright files and 2 symbolic links. As specified in Section 2.2, the license files are retained, as per the .slimify-includes configuration.

The digests for each image are as follows (pulled on December 5, 2026, for linux/arm64).

  • debian:13-slim: sha256:8aa5a7bf5a1955bddbe7d74fcdd0b91ab30e74362a8b73af672b0481b35b44a0
  • alpine:3.25: sha256:69447917796609cfd4bc55d0e4989e311549510ca3c5ee4eb768e25dce5f78bc
  • gcr.io/distroless/static-debian13:latest: sha256:4c2cd1dee442c9a99924a378c7c126fac8fef14771579ef567c3f2bdd7a5122a
  • gcr.io/distroless/base-debian13:latest: sha256:1eb7e763df3f75a0d0eab87368f04e1bc61ce268caf3f2cbae765fa8fd4fd3e8
  • gcr.io/distroless/base-debian13:debug: sha256:e8de98c7a8f6565f2a0d66544d4f336736b9279e301f5a9755c74907d951f060
  • cgr.dev/chainguard/glibc-dynamic:latest: sha256:975a3e321b5169d7c78fcc559481eaacbe4220659c713ff4e896d9766f534f34
  • cgr.dev/chainguard/glibc-dynamic:latest-dev: sha256:0789a31ba5f8927b060ba24fa033d3611720c09844b7c7fb6793b937d775e945
  • public.ecr.aws/amazonlinux/amazonlinux:2023-minimal: sha256:2e4204014461fc46abcd28b6d2bf6e90ede7b4bd43b83d4a43b5bf8a55abc2b2
  • dhi.io/debian-base:trixie: sha256:80a0897e009a3950d7f3dbe706bc793757a2116152bf8ffeddcb3dff464df0f1
  • dhi.io/debian-base:trixie-dev: sha256:c0157ccf600227f3f7dd2e58136f4b924f32292773284d13496913ca43fd3258

6.3 Table 6: Counts by Scanner

The following table shows the counts when three different scanners read the same images (Measured). Trivy and Grype display "number of rows / number of vulnerability IDs," while Docker Scout displays "number of results / number of rules." As noted in Section 5.5, the units are not consistent. These counts cannot be used to compare the quality of the images.

ImageTrivyGrypeDocker ScoutTrivy OS DetectionGrype OS Detection
debian:13-slim218 / 106203 / 9243 / 43debian 13.8debian 13.8
alpine:3.250 / 09 / 30 / 0alpine 3.25.0alpine 3.25.0
distroless/static-debian13:latest0 / 00 / 00 / 0debian 13.8debian 13.8
distroless/base-debian13:latest29 / 2929 / 290 / 0debian 13.8debian 13.8
distroless/base-debian13:debug29 / 2932 / 320 / 0debian 13.8debian 13.8
chainguard/glibc-dynamic:latest0 / 00 / 00 / 0wolfi 20230201wolfi 20230201
chainguard/glibc-dynamic:latest-dev0 / 00 / 00 / 0wolfi 20230201wolfi 20230201
amazonlinux:2023-minimal0 / 00 / 00 / 0amazon 2023.12.20261204amazonlinux 2023
dhi.io/debian-base:trixie100 / 570 / 0101 / 43debian 13.8dhi 13
dhi.io/debian-base:trixie-dev212 / 1050 / 0127 / 59debian 13.8dhi 13

All scanners exited with code 0. Trivy issued a warning on the alpine:3.25 image, stating "This OS version is not on the EOL list." On the five images that it detected as Debian and reported vulnerabilities for, it issued the warning "Using severities from other vendors for some vulnerabilities" (Measured).

6.4 How to Read the Tables

Refer to Tables 5 and 6, and connect the information you find there with the explanations provided in Chapter 5.

  1. Debian slim retains the shell and apt. As mentioned in Section 2.2, the files removed included man pages, and /usr/share/man contained zero items. However, bash, apt, and dpkg, along with the package database, were retained (Measured).
  2. The DHI debian-base runtime retains bash but removes apt. In trixie, the default user is 65532, and trixie-dev runs as root and has apt (Measured). Both contained over 500 files in /usr/share/man. What is removed varies by image publisher.
  3. Even with the same digest, the number of findings varies depending on the scanner. debian:13-slim resulted in 218 findings with Trivy, 203 with Grype, and 43 with Docker Scout. The severity levels also differed; Trivy reported 51 high-severity findings, while Grype reported 72 (Measured). As stated in Section 5.4, Trivy uses Debian's urgency levels (Stated).
  4. When the OS is detected differently, the number of findings also varies. Trivy identified dhi.io/debian-base:trixie as debian 13.8 and produced 100 findings. Grype identified it as dhi 13 and produced 0 findings. Docker Scout produced 101 findings, identifying the packages as pkg:deb/dhi/... (Measured). The DHI pages state that Trivy does not read the DHI advisory feed, while Grype and Docker Scout read it (Stated). Even between the two that are said to read the feed, the number of findings differed, ranging from 0 to 101. This article does not attempt to determine which findings are correct.
  5. The database date can affect how fixes are displayed. For libssl3t64 3.5.9-1~deb13u1 in debian:13-slim, Trivy reported that CVE-2026-107494 was fixed in 3.5.10-1~deb13u1, while Grype reported wont-fix (Measured). The database dates used by Trivy and Grype were 2026-12-05T01:01Z and 2026-12-04T06:21Z, respectively, approximately 19 hours apart. This article infers that this gap explains the difference, but has not verified it (Inference).
  6. For newer OS versions, scanners may not be up-to-date. Trivy reported a warning for alpine:3.25, resulting in 0 findings. As stated in Section 5.1, the Trivy page on the checked date lists Alpine support as "2.2 - 2.7, 3.0 - 3.22, edge" (Stated). Grype reported 9 findings for the same image, but none came from Alpine data; they were 3 CVEs related to busybox, identified through matching with NVD's CPE (Measured).
  7. Files not included in the package database may be detected differently by scanners. For base-debian13:debug, BusyBox is located at /busybox/busybox. The package database lists the same number of items (10) as latest. Grype identified this file as a binary and added 3 findings based on CPE. Trivy reported the same 29 findings as latest (Measured).
  8. Docker Scout reported 0 findings for distroless images. base-debian13 includes the same libssl3t64 3.5.9-1~deb13u1 as debian:13-slim, resulting in 29 findings from Trivy and Grype. However, Docker Scout reported CVEs for this version of OpenSSL in the slim image but 0 findings in the distroless image (Measured). As stated in Section 5.2, the reason for this has not been verified.
  9. A result of 0 findings represents the result of that specific scanner at that specific point in time. Chainguard's two images and AL2023 minimal all resulted in 0 findings across all three scanners (Measured). This is the result of reading the digest against the database for that day. If the same digest is read against the database the next day, the count may change (Inference).

Another point to consider is that the Created field in docker image inspect does not always accurately reflect the age of an image. Three distroless images showed a date of 1970-01-01T00:00:00Z. The debian:13-slim image displayed a date of 2026-11-23T00:00:00Z, which matched the date associated with the tag trixie-20261123-slim. Chainguard's latest and latest-dev images, on the other hand, were created at different times on the same day (Measured). To verify which build is being used, you should check the digest, not the Created field.

7. Things to Verify Before Changing the Base Image

The following table lists items to verify before changing the base image.

Item to VerifyWhat to CheckRelevant Chapter
Is a shell required during investigation?Does the image have debug, latest-dev, or -dev tags? Can alternative methods like Docker Debug be used?Chapter 2
Does the application rely on glibc?Check the base libc: is it musl or glibc?Chapter 2
Is the default user root?Use docker image inspect and check Config.User. An empty value or 0 indicates root.Chapters 2 & 6
Who ships the fixes, and until when?Check the publisher of the package and the publisher of the image, noting their respective deadlines.Chapter 3
Can the version be pinned on the free edition?Does it only use the latest tag, or are version tags available?Chapter 4
Is there a mechanism to update the digest?Consider dependency update bots and planned rebuilds.Chapter 4
Is the build being used tracked with a digest?Use docker image inspect and check RepoDigests. Created may not always be a reliable indicator of recency.Chapters 4 & 6
Can the scanner read the OS and feed for this image?Check /etc/os-release for the ID, consult the scanner's compatibility table, and consider how VEX is applied.Chapter 5
When comparing counts, are the conditions consistent?Ensure consistency in scanner versions, database dates, digests, and counting methods.Chapters 5 & 6

The DHI how-to's troubleshooting section suggests using Docker Debug as a means of investigating shell-less images (Stated). For images without a shell, it is necessary to determine the investigation methods in advance.

8. Frequently Asked Questions About Smaller Base Images

Q1. Is Debian slim similar to a distroless image?

Not really. Debian slim removes files such as documentation, man pages, and locales. In the demonstration in Chapter 6, debian:13-slim still included shell, apt, and dpkg. Only distroless's static and base, and Chainguard's latest images lacked both shell and package managers. DHI's debian-base runtime included bash but lacked apt.

Q2. Is an image with a lower scanner count safer?

The count alone cannot tell you. The number of packages is only one factor; it also depends on whether the scanner could accurately identify the OS, whether VEX was applied, whose severity data it used, and how it counted. In the demonstration in Chapter 6, debian:13-slim had 218 findings with Trivy, 203 with Grype, and 43 results with Docker Scout, all with the same digest. A result of 0 is also based on the scanner's database at that particular time.

Q3. Can Trivy scan DHI images?

The DHI how-to scan page states that Trivy does not read DHI's advisory feed and is only usable with images that do not use the feed. Images that use the feed return ID=dhi in /etc/os-release. The page recommends using Docker Scout or Grype for images that use the feed. In the demonstration in Chapter 6, Trivy identified dhi.io/debian-base:trixie as Debian 13.8 and produced 100 findings based on Debian's data.

Q4. Can you pin a specific version with Chainguard's free images?

You cannot pin using version tags. The overview states that the free images are limited to the latest builds of latest and latest-dev. You can pin to a specific image using its digest, which will ensure you continue to use the same image, although that particular build will not be rebuilt.

Q5. For how long will DHI's free images be maintained?

The pages this article references do not specify a deadline. The responsibility page states that Community has no guaranteed deadline for fixes. This article did not find a lifecycle page. The GitHub catalog definition for debian-base lists an end-of-life date of August 9, 2028, consistent with Debian 13.

Q6. Does AL2023 minimal include a shell?

Yes. The page comparing packages in the AL2023 container images indicates that the minimal container includes bash. The demonstration in Chapter 6 also showed that 2023-minimal had bash. The package manager used is microdnf instead of dnf.

Q7. Are distroless images for Debian 12 still usable?

Distroless removed Debian 12 builds with the commit "Remove debian12 builds" on September 10, 2026. SUPPORT_POLICY.md only includes images for Debian 13. Debian 12 itself is in the Debian LTS support period. The pages give no reason to read that Debian's LTS fixes keep reaching the distroless -debian12 images.

Q8. Can you obtain Chainguard or DHI images from Amazon ECR Public?

The What's New post from November 29, 2026, states that Amazon ECR Public began offering paid container images as premium content, and lists Chainguard, Docker, ScaleOps, RapidFort, and Echo as launch partners. DHI's release notes also mention DHI as premium content in the ECR Public Gallery. This article does not discuss pricing.

9. Summary

  • "Small" images come in three varieties: Debian slim (which removes files), Alpine (which replaces libc and basic commands), and distroless and Chainguard's latest (which remove the shell and package manager). DHI's runtime removes the package manager. AL2023 minimal reduces the number of packages and includes microdnf.
  • Debian slim retains the shell and apt. DHI's debian-base runtime keeps bash but removes apt. The presence of a shell should be verified on a per-image basis.
  • Fixes arrive in the following order: package publisher, image rebuild, tags and digests, and your own builds. Deadlines differ by publisher: Debian offers 5 years, Alpine's main branch is typically supported for 2 years, distroless estimates 1 year or 3 months from the Debian 14 release, and AL2023 is supported until 2029-06-30.
  • Chainguard's maintained images are rebuilt daily, and the end-of-life (EOL) grace period for customers is up to 6 months. Free images are limited to the latest and latest-dev tags.
  • DHI's Community has no guaranteed fix deadline, and this article did not find a lifecycle page. DHI does not offer a latest tag.
  • Scanners read the ID in /etc/os-release and the package database to decide which data to look up. Docker's documentation states that Trivy does not read DHI's advisory feed.
  • The difference in scanner counts does not necessarily reflect a difference in the security of the images. Read counts with the scanner version, database date, digest, and counting method aligned.
  • This article is based on documentation reviewed on 2026-12-05 and images obtained on the same day.

10. References



References:
Tech Blog with curated related content

Written by Hidekazu Konishi