The official distroless-base docker image.
Maintained by: openEuler CloudNative SIG.
Where to get help: openEuler CloudNative SIG, openEuler.
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 openeuler/distroless-static image, which contains:
Most other applications (and Go apps that require libc/cgo) should start with openeuler/distroless-base, which contains all of the packages in openeuler/distroless-static, and
The tag of each distroless-base docker image is consist of the version of glibc and version of openEuler. The details are as follows
| Tag | Currently | Architectures |
|---|---|---|
| 2.38-oe2403lts | Glibc 4.1.4 on openEuler 24.03-LTS | amd64, arm64 |
Users are expected to include their compiled application and set the correct cmd in their image. For example
# Dockerfile
FROM openeuler/openeuler:latest AS build-env
COPY . /app
WORKDIR /app
RUN yum install -y gcc g++
RUN cc hello.c -o hello
FROM openeuler/distroless-base:2.38-oe2403lts
COPY --from=build-env /app /app
WORKDIR /app
CMD ["./hello"]
For implementation details, refer to the distroless-base-nonroot documentation.
If you have any questions or want to use some special features, please submit an issue or a pull request on openeuler-docker-images.
Content type
Image
Digest
sha256:83dafa78e…
Size
11.1 MB
Last updated
about 1 month ago
docker pull openeuler/distroless-base:2.38-oe2403ltsPulls:
28
Last week