Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

./api: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by ./api) #305

Open
poka-IT opened this issue Sep 11, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@poka-IT
Copy link

poka-IT commented Sep 11, 2023

Description of the bug

After build the Dockerfile in /api, when I try to run the docker image, I got this error:

$ sudo docker run -p 127.0.0.1:3001:3000 crab-fit-api
./api: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by ./api)
./api: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by ./api)
./api: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./api)

To reproduce

sudo docker build -t crab-fit-api .
sudo docker run -p 127.0.0.1:3001:3000 crab-fit-api

Expected behavior

The Docker container should start.

Additional information

Use in Debian 11 inside LXC container.

@poka-IT poka-IT added the bug Something isn't working label Sep 11, 2023
@mowtim
Copy link

mowtim commented Oct 18, 2023

Same problem in Debian 12.2 and Ubuntu 22.04

@wetzel-desy
Copy link

I'm experiencing the same issue on Fedora39 with docker version 26.0.0, build 2ae903e.

@wetzel-desy
Copy link

The reason for this issue is the OS-version mismatch between the build and runtime layers in the Dockerfile. While the build-layer with rust:latest is based on debian:bookworm-slim and comes with GLIBC 2.36-9+deb12u4, the runtime layer is based on debian:bullseye-slim which is shipped with GLIBC 2.31-13+deb11u8.

A simple fix seems to be replacing the runtime image tag bullseye-slim with bookworm-slim.
At least the image is now complaining about the missing GCP_CREDENTIALS instead of missing GLIBC versions...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants