Skip to content

Libc release mappings

Dependency staging selects libc tags using explicit PYTHON_LIBC metadata or a mapped codename token in a tag-only registry pull of the official python image. For codename-less/unmapped official tag-only pulls, the builder can instead establish libc from effective, digest-checked base package metadata. Unproven targets of either libc family fail before staging; the shared manylinux2014 table values are aliases, not inferred floors. Mapped values are conservative bounds based on the source evidence below, not measurements of individual image digests. The evidence is pinned to content-addressed Debian snapshot files and commits in Alpine aports or docker-library/python. Mutable pointers such as sources.debian.org suite views or 3.N-stable branch names are not provenance.

Verified on 2026-11-22. The tables in src/pycontainer/dependencies.py (_DEBIAN_GLIBC_MINOR, _ALPINE_MUSL_MINOR) must match this document.

An official Python Dockerfile refers to a Debian base tag, not a pinned base digest. A suite snapshot at the Python Dockerfile commit therefore does not establish which libc the image contains. These bounds instead use the suite version when the codename first appeared in the official Debian image declarations. Source snapshots exclude Extra-Source-Only: yes stanzas.

Codename Bound First Debian declaration Suite glibc and snapshot
jessie 2.17 2013-10-16 2.17-93
stretch 2.19 2015-04-29 2.19-18
buster 2.24 2017-06-20 2.24-11
bullseye 2.28 2019-07-09 2.28-10
bookworm 2.31 2021-08-16 2.31-13
trixie 2.36 2023-06-12 2.36-9

On 2026-11-22, the archived image manifests below were fetched from Docker Hub. Their manifest and layer digests and sizes were verified; the libc6 version was read from var/lib/dpkg/status inside each layer without extracting it. The date tags identify the observed images; the SHA-256 manifest digests, not the mutable tags, identify the checked artifacts.

Debian image Architecture Manifest SHA-256 libc6
buster-20170620 amd64 a4f78f38cf60ed790efe91fcea9333ba634fe2ecbbc1418a55ac5d04047d32eb 2.24-11
bullseye-20190708-slim amd64 62adebce7f39b0603644bca1aaff7678f5abe50776bf4334cd5a7e7facbb1d85 2.28-10
bullseye-20190708-slim arm64 a342b414ce3c37fd6e12b7ba416a7c4f0aa29b7302eb2a8cf7b257be2d164de5 2.28-10
bookworm-20210816-slim amd64 454b407ad1612c8a30f55a71b49333ea2d88855eadec9c10f16cfaaf59786d81 2.31-13
bookworm-20210816-slim arm64 b6fac6322e14853f243e0385e7d9983bcc5b5c1491ad30429945a763b002f834 2.31-13
trixie-20230612-slim amd64 89e094999244cf2481fd2af9535f18c647f9f0b216bdaed98e7d6350af2e6191 2.36-9
trixie-20230612-slim arm64 9e76f56013f737abb3e980dcbaa05c0bc7c7a210a6b270fde5bcd9de48af6bb1 2.36-9

Official python:*-alpine3.N images build on alpine:3.N, which is only published from the v3.N.0 release onwards. The floor is the musl pkgver in main/musl/APKBUILD at the release tag commit. The current branch head is pinned as well to show that the release never left that musl minor.

Tag token Floor v3.N.0 commit: pkgver Branch head commit: pkgver
alpine3.0 musl 1.1 b19885138e9f: 1.1.1 2c450b43736d: 1.1.4
alpine3.1 musl 1.1 8327d72e3684: 1.1.5 ba3dc3d21018: 1.1.5
alpine3.2 musl 1.1 6c96fddd7d8d: 1.1.9 95b875ef631e: 1.1.11
alpine3.3 musl 1.1 ae40ed17f110: 1.1.12 74d5d2e7e054: 1.1.12
alpine3.4 musl 1.1 00864455a5b1: 1.1.14 b5087e76b93e: 1.1.14
alpine3.5 musl 1.1 9909afdb1f70: 1.1.15 ed4ea0821f28: 1.1.15
alpine3.6 musl 1.1 58a0da638390: 1.1.16 f768243373c9: 1.1.16
alpine3.7 musl 1.1 4bb0f9934eee: 1.1.18 cddd1b23022d: 1.1.18
alpine3.8 musl 1.1 2484b3eda99f: 1.1.19 f94de196ca38: 1.1.19
alpine3.9 musl 1.1 8207e0e6e18c: 1.1.20 e3401697f466: 1.1.20
alpine3.10 musl 1.1 65ba30dd7704: 1.1.22 4c0cc82ff8ef: 1.1.22
alpine3.11 musl 1.1 3c23ef02cdf8: 1.1.24 2cfa91a2b43e: 1.1.24
alpine3.12 musl 1.1 9a0677284deb: 1.1.24 79e71a187dc0: 1.1.24
alpine3.13 musl 1.2 09276e69ab25: 1.2.2_pre7 9bb51a63ac1f: 1.2.2
alpine3.14 musl 1.2 cf59c903c95a: 1.2.2 c6895df0c923: 1.2.2
alpine3.15 musl 1.2 ffb3e3e05a68: 1.2.2 2a2ec278a7b2: 1.2.2
alpine3.16 musl 1.2 e2c6d5931e7f: 1.2.3 6421845cbd09: 1.2.3
alpine3.17 musl 1.2 fea827d99a2e: 1.2.3 d1bfe4195d0a: 1.2.3
alpine3.18 musl 1.2 8b72c4075123: 1.2.4 d8ae998ae778: 1.2.4
alpine3.19 musl 1.2 d01502332b77: 1.2.4_git20230717 a1666666ac5b: 1.2.4_git20230717
alpine3.20 musl 1.2 1402388a3a74: 1.2.5 9d9c124fde04: 1.2.5
alpine3.21 musl 1.2 59962f87e460: 1.2.5 913f2351f392: 1.2.5
alpine3.22 musl 1.2 76769759d295: 1.2.5 82fbff58eeec: 1.2.5
alpine3.23 musl 1.2 319b82182d15: 1.2.5 a2a1c9ed8570: 1.2.5
alpine3.24 musl 1.2 d0f20bc945ea: 1.2.6 d76eb1f5547d: 1.2.6

Commit SHAs are the peeled refs/tags/v3.N.0^{} and refs/heads/3.N-stable values from git ls-remote https://git.alpinelinux.org/aports.

  • Safety amendment (2026-11-22, #143 / #191): the original unchanged codename-less Alpine acceptance is superseded. The coordinator’s verified Docker Hub pull of python:3.8.0-alpine, linux/amd64 manifest sha256:3996a4b86240b6d41b57055cd7f626cbb15e2baef149b4fd841e04fec7308290, has Alpine 3.10.3 and final musl 1.1.22-r3 in /lib/apk/db/installed. The manifest, config and all five layer digests and sizes were verified; package-database updates were applied in layer order. The verified config has PYTHON_VERSION=3.8.0 and no PYTHON_LIBC. No container was run. The previous musllinux_1_2 fallback permitted a newer-musl wheel. A hermetic CPython 3.8 wheel fixture reproduces that pip selection before the fix. Codename-less and unmapped Alpine tags now require explicit supported PYTHON_LIBC, or a mapped release tag, before requirements or virtualenv staging. Neither the Python version nor an unspecified Alpine tag proves even a musl 1.1 floor. This is an intentional compatibility change, not evidence that runtime package databases are inspected by the builder.
  • Additional safety amendment (2026-11-22, #143 / #191): the remaining unchanged glibc fallback acceptance is also superseded. The coordinator verified official python:3.4-wheezy, linux/amd64 manifest sha256:f998a1bcf27c446557d2a036bc8c794364ee2faf8af1ef2c5691ca197a3c2df4. Its config has PYTHON_VERSION=3.4.10 and no PYTHON_LIBC; the latest effective dpkg status reports libc6 2.13-38+deb7u12. Manifest/config descriptors and layers from the top through that status file were verified. A hermetic cp34-abi3-manylinux2014_x86_64 wheel fixture reproduces unsafe real-pip selection before the fix. All codename-less or unmapped tags now require explicit libc metadata. Explicit glibc below 2.17 remains unsupported. Neither check establishes runtime importability; no container was run.
  • Compatibility reconciliation (2026-11-22): the proposed reject-all-unmapped behavior above is superseded for verified official tag-only pulls that provide usable layer evidence. base_libc.py reads the final effective dpkg libc6 or APK musl version, applying ordered layer deletions and opaque whiteouts before each layer’s additions. Digests/sizes, gzip trailers, tar end blocks, regular-file/ancestor types, package status, unique fields and native package architecture are checked. Invalid, missing, linked, ambiguous or unsupported evidence fails closed. To support usr-merged images, a foreign database root link of exactly lib -> usr/lib or var -> usr/var is recognized without following links; the redirected database is checked for conflicting evidence with the same whiteout rules. Other foreign links and links above the redirected path fail closed. Historical links are retained conservatively, so later removal can still cause rejection. Limits are 8 MiB per database/extended header, 2 GiB decoded bytes and 100,000 members per layer, and 300 seconds including verification. Base files are never extracted. The reporting scanner in system_packages.py is not used as libc evidence.
  • Defaults and the external Aspire invocation are preserved: BuildConfig and the reusable workflow still use python:3.11-slim, CLI automatic selection is unchanged, and python:3.12-slim --include-deps stages using verified package evidence. A hermetic actual CLI/registry/builder regression checks descriptor verification, wheel selection and unchanged base config; it also selects musl 1.1 for the old Alpine case and rejects Wheezy’s unsupported glibc 2.13 before pip. Inferred metadata exists only in a staging config copy. A mapped release or explicit base metadata is required when layer evidence is unavailable.
  • Pinned commits cover the release point and one later branch commit, not every intermediate commit. Both points share the same musl minor, and Alpine stable branches only take patch updates.
  • New or unmapped releases require valid layer evidence or explicit libc metadata until their row is verified and added here and in the code table.
  • Docker Hub tags are mutable. These source records do not verify the libc installed in every published Python image digest, or prove that no intermediate suite update ever contained an older version. These conservative bounds may reject wheels that a particular newer image could run. Digest references still require explicit PYTHON_LIBC metadata.
  • No tags below glibc 2.17 or musl 1.1 are generated.