Closed
Description
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
- Last year in add workaround for non-static
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#5824 - Since then this addition of
libc6-compat
has migrated a few places: https://github.com/docker-library/docker/search?q=libc6-compat e.g
docker/Dockerfile-cli.template
Lines 4 to 7 in 04ae082
- since the
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 avoided
Current State (Sep 2022)
- In containerd
1.6.7
a fix was backported to allow building static binaries simpler via - Docker 20.10.18 includes containerd
1.6.8
but not sure if the Alpine builds are all fully static just yet docker-proxy
fixed to be static in fix docker-proxy not statically linked moby/moby#43621- A mega pull was at fix docker-proxy and ctr not statically linked moby/moby#43492 but the
ctr
bits had problems so look like not merged. - Fixing static build of
ctr
may be waiting on Enhanced Dockerfile for cross compilation moby/moby#43529 or similar.
Metadata
Metadata
Assignees
Labels
No labels