Closed physics515 closed 2 years ago
You're building in a container built off of Debian Bullseye which has a newer glibc version than Debian Buster, which is what you're trying to run it in. You can update the second container to debian:bullseye
and it should work.
I'm building again now, I'll confirm if it works, but is there any source for how one would come upon such information? Like the differences between Buster and Bullseye, and when to use which container?
Bullseye and Buster are just the names of the last two stable Debian releases: https://www.debian.org/releases/. Generally speaking, I'd always just use the newest stable release.
That worked like a charm. Thank you!
This is my first time trying to create a docker image, so bear with me. I'm not even sure this is the best place to post this issue. I can successfully build the image but when I run the image unsing:
docker run -p 80:80 my-app
I get an error:./my-app: /lib/x86_64-linux-gnu/libm.so.6: version 'GLIBC_2.29' not found (required by ./my-app)
./my-app: /lib/x86_64-linux-gnu/libc.so.6: version 'GLIBC_2.29' not found (required by ./my-app)
My docker file
Any ideas what I am doing wrong here?