Skip to content

Latest commit

History

History
28 lines (18 loc) 路 1 KB

README.md

File metadata and controls

28 lines (18 loc) 路 1 KB

Documentation for gcr.io/distroless/base, gcr.io/distroless/base-nossl and gcr.io/distroless/static

Image Contents

This image contains a minimal Linux, glibc-based system. It is intended for use directly by "mostly-statically compiled" languages like Go, Rust or D.

Statically compiled applications (Go) that do not require libc can use the gcr.io/distroless/static image, which contains:

  • ca-certificates
  • A /etc/passwd entry for a root user
  • A /tmp directory
  • tzdata

Applications that require libc but do not need libssl can use the gcr.io/distroless/base-nossl, which contains all of the packages in gcr.io/distroless/static, and

  • glibc

Most other applications (and Go apps that require libc/cgo) should start with gcr.io/distroless/base, which contains all of the packages in gcr.io/distroless/static, and

  • glibc
  • libssl
  • openssl (only debian11, removed from debian12 onward)

Usage

Users are expected to include their compiled application and set the correct cmd in their image.