Distroless Image
A distroless image is a minimal container image that contains an application's runtime dependencies but no shell, package manager or other operating system utilities.
What Is a Distroless Image?
The term comes from Google's Distroless project, which strips Debian-based images down to what an application needs to run. The idea is that a production container should not carry tools an attacker could use, or packages that only add CVEs.
How Distroless Images Work
Applications are built in a full-featured builder stage and copied into the distroless runtime image in a multi-stage build. The final image has no shell, so debugging uses ephemeral debug containers or debug variants.
Types of Distroless Images
- Static: for statically compiled binaries such as Go
- Base: glibc and core libraries
- Language runtimes: Java, Python, Node.js
Limitations of Distroless Images
Minimal does not mean CVE-free. Distroless images inherit the upstream distribution's patch timing and carry no SLA. Hardened providers such as Echo combine the minimal approach with active maintenance.