Skip to content

Commit

Permalink
Install wget to avoid the busybox wget leaking defunct processes
Browse files Browse the repository at this point in the history
When running busybox wget v1.31.x to request an SSL page, there is a
leak of defunct processes that eventually could hit the limit for fork
syscalls, leading to the unavailability of main registry process.

Installing wget from the alpine repository resolves the issue as this
only affects the busybox distribution. Moreover, this should
transparently resolve the issue for deployments
using wget as healthcheck/readiness/liveness probe.

xref: https://bugs.busybox.net/show_bug.cgi?id=15967

Closes #158
  • Loading branch information
aleskandro committed Mar 4, 2024
1 parent 46dd6fb commit 0cd8640
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM alpine:3.19

RUN apk add --no-cache ca-certificates
RUN apk add --no-cache ca-certificates wget

RUN set -eux; \
# https://github.com/distribution/distribution/releases
Expand Down

0 comments on commit 0cd8640

Please sign in to comment.