1

Docker containers share the kernel of the host, but they do include their own applications and libraries. Is it correct that glibc is one of these libraries?

If so, how come there is no problem of glibc being incompatible with whatever kernel version the actual container host runs?

2

Linux kernel is rather binary compatible when considering apps. If you see an incompatibility, it is most likely caused by

a. CPU architecture mismatch (obviously unrelated to kernel version) or

b. Library issues. Apps typically depend on some libraries. If any of them is missing or incompatible, then the app will likely not work.

Sure, there are some APIs/ABIs in kernel that might change across versions., so kernel incompatibility might happen in theory. It just does not happen so often…

Kernel modules are a different story, level of compatibility across versions is AFAIK quite lower there. But you don't need a kernel module for glibc…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.