talira

distroless

Language focused docker images, minus the operating system

open sourceApache-2.0self-hostablefree

distroless is a set of container images from GoogleContainerTools that contain only an application's runtime dependencies, with no package manager, shell or other programs of a normal Linux distribution. The images are built with Bazel from Debian 13 packages and published at gcr.io/distroless: static, base, base-nossl and cc for compiled languages, and runtimes for Java, Node.js and Python, each with nonroot, debug (busybox shell) and debug-nonroot tags across amd64, arm64 and other architectures. The smallest, static-debian13, is about 2 MiB. Every image is signed keylessly with Cosign, and support follows Debian's release timeline.

Problems it solves

  • our production container images ship a shell and package manager an attacker could use
  • smaller base images so the vulnerability scanner reports fewer irrelevant CVEs
  • a tiny base image for a statically compiled Go or Rust binary
  • a minimal Java runtime image without the rest of Debian
  • a Node.js or Python runtime image with nothing else in it
  • free minimal base images that are signed so we can verify where they came from
  • run our container as a non-root user by default without writing our own base image
  • debug a minimal container image that has no shell
  • build minimal container images with Bazel and add specific Debian packages
  • a glibc-based minimal image because our binary doesn't work on Alpine's musl
  • need a container base image with no shell, no package manager and nothing an attacker could run
  • swap our Debian or Alpine base image for one that holds only the language runtime our app needs

Features

  • static, base, base-nossl and cc images for compiled languages
  • Java (17, 21, 25), Node.js (22, 24, 26) and Python 3 runtime images
  • latest, nonroot, debug and debug-nonroot tags
  • multi-architecture image indexes: amd64, arm64, arm, s390x, ppc64le, riscv64 (varies by image)
  • smallest image about 2 MiB
  • keyless Cosign signatures on every image
  • built with Bazel; custom images with rules_distroless
  • Debian package updates picked up automatically by pull requests
  • support policy tied to Debian's release timeline

Limitations

  • No shell or package manager in the images: only the :debug variants include a busybox shell1
  • No Alpine or musl images: every distroless image is based on Debian 13 (trixie)1

Alternatives

The same job

These do what distroless does.

  1. Chainguard Containers Zero-CVE, built-from-source container image catalog
  2. Docker Hardened Images Near-zero CVE, secure-by-default, minimal container images
  3. SlimToolkit Inspect, minify and debug your containers

Compare distroless with the top 3