-
Notifications
You must be signed in to change notification settings - Fork 597
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
Images to make use of statically linked binaries to remove need for libc6-compat #377
Comments
Agreed, it would be great to remove this dependency -- at the very least, we could move it to the I just did some testing on the |
Hmm, although there's a decent argument to be made for |
Thanks for replying and giving it a test - tried to do this myself in this repo, but got lost in the scripting here :-) Let's see how things go upstream; hopefully we have the right issues opened/pull requests underway to make this happen at some point. |
Am I right in thinking after moby/moby#44659 that |
Yeah! Just tested and 20.10 is still affected, but 23.0 looks fine! Will be sending a PR shortly. 💪 |
libc6-compat was finally removed upstream in docker-library/docker#411 and docker-library/docker#377
Thanks, very nice! 🥳 Happy to close this unless we think there's a realistic chance of the underlying improvements getting back-ported to |
Yeah, I guess that's a fair point; the chances of backporting the fixes are indeed low. 👍 |
Please excuse my ignorance here if this is the wrong place to raise this, but thought it might be useful to have a placeholder folks could follow. Not sure if something can be done in this repo right now, or we would still be waiting on another part of the docker ecosystem.
Background
ctr
binary in docker 20.10.8 #323libc6-compat
was added into the Alpine images to address an issue withctr
not being fully statically linked as noted in Statically compilingctr
fails on Go 1.15 and up (segfault or not statically linked) containerd/containerd#5824libc6-compat
has migrated a few places: https://github.com/docker-library/docker/search?q=libc6-compat e.gdocker/Dockerfile-cli.template
Lines 4 to 7 in 04ae082
libc6-compat
library can conflict with alternatives folks might want to use (e.ggcompat
or... gasp.... alpine glibc 🙈) it can cause child images to have toapk del --purge libc6-compat
so seems would be better without it if it can be avoidedCurrent State (Sep 2022)
1.6.7
a fix was backported to allow building static binaries simpler via1.6.8
but not sure if the Alpine builds are all fully static just yetdocker-proxy
fixed to be static in fix docker-proxy not statically linked moby/moby#43621ctr
bits had problems so look like not merged.ctr
may be waiting on Enhanced Dockerfile for cross compilation moby/moby#43529 or similar.The text was updated successfully, but these errors were encountered: