GoogleContainerTools / distroless

🥑 Language focused docker images, minus the operating system.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found error when using distroless base

metomimic opened this issue · comments

Describe the bug
I build an image using distroless base with Bazel rule oci_pull and I get the error
2024-03-27 20:32:46 /app: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.34' not found (required by /app)`

To Reproduce
Setup a project like with Bazel and include the following in the build file

oci_pull(
    name = "distroless_base",
    digest = "sha256:ccaef5ee2f1850270d453fdf700a5392534f8d1a8ca2acda391fbb6a06b81c86",  #multi-arch
    image = "gcr.io/distroless/base",
    platforms = [
        "linux/amd64",
    ],
)

Expected behavior
It should run the contained binary with no errors the way it does without building with the distroless base image

using gcr.io/distroless/base-debian12 resolved the issue