You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
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...
Description of the bug
After build the Dockerfile in /api, when I try to run the docker image, I got this error:
To reproduce
Expected behavior
The Docker container should start.
Additional information
Use in Debian 11 inside LXC container.
The text was updated successfully, but these errors were encountered: