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
metomimic commented
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
metomimic commented
using gcr.io/distroless/base-debian12 resolved the issue