-
Notifications
You must be signed in to change notification settings - Fork 619
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
ctrbinary in docker 20.10.8 #323libc6-compatwas added into the Alpine images to address an issue withctrnot being fully statically linked as noted in Statically compilingctrfails on Go 1.15 and up (segfault or not statically linked) containerd/containerd#5824 - Since then this addition of
libc6-compathas 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
RUN apk add --no-cache \ ca-certificates \ # Workaround for golang not producing a static ctr binary on Go 1.15 and up https://github.com/containerd/containerd/issues/5824 libc6-compat \ - since the
libc6-compatlibrary can conflict with alternatives folks might want to use (e.ggcompator... gasp.... alpine glibc 🙈) it can cause child images to have toapk del --purge libc6-compatso seems would be better without it if it can be avoided
Current State (Sep 2022)
- In containerd
1.6.7a fix was backported to allow building static binaries simpler via - Docker 20.10.18 includes containerd
1.6.8but not sure if the Alpine builds are all fully static just yet docker-proxyfixed 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
ctrbits had problems so look like not merged. - Fixing static build of
ctrmay be waiting on Enhanced Dockerfile for cross compilation moby/moby#43529 or similar.
Metadata
Metadata
Assignees
Labels
No labels