docker: pin the final alpine base image
Maintainers usually reply within 1 day
@danieldzansi is already working on this.
Since Nov 4, 2026.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 80/100
Research direction
Read the final stages in Dockerfile and dev.Dockerfile, then check .github/workflows/docker.yml to confirm how the images are built. Pin the Alpine base to a release and, if available, its multi-architecture index digest so both linux/amd64 and linux/arm64 builds work. Done when both final stages use a fixed base and the workflow can build the release and daily images.
Written by the indexing model from the issue text.
Description
The final stage of the release Dockerfile (and dev.Dockerfile) uses a bare
FROM alpine, with no version tag or digest (master @ c03d36598):
- https://github.com/lightningnetwork/lnd/blob/c03d365984fe7e4e53400ef6c6017622daffa702/Dockerfile#L22
- https://github.com/lightningnetwork/lnd/blob/c03d365984fe7e4e53400ef6c6017622daffa702/dev.Dockerfile#L28
.github/workflows/docker.yml builds this file for every release tag and for
the daily lightninglabs/lnd image. So each build runs on whatever
alpine:latest is that day. Two builds of the same lnd tag can ship different
Alpine releases, a new Alpine major can change the published image without any
lnd change, and the base layer of a given image can't be tied back to the repo.
The builder stage is already pinned by version (golang:1.27.3-alpine).
Proposal: pin the final stage, at minimum to an Alpine release
(alpine:3.x), ideally to that release's multi-arch index digest
(alpine:3.x@sha256:...). An index digest resolves per platform, so it works
for both linux/amd64 and linux/arm64, which was the concern raised on the
earlier attempt, #5753 (closed; it pinned only the builder images). The pin
would be bumped alongside the regular Go version bumps.
Background: #5787 (distroless images, closed not planned).
- Dominant language
- Go
- Stars
- 8.2k
- Forks
- 2.3k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 103
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from lightningnetwork/lnd
-
funding: failure logs print `<nil>` error and zero channel IDPossibly taken @litbot-9000 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
lightningnetwork/lnd#11676 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 Half a day Newbie friendliness 85/100
lightningnetwork/lnd#11674 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
lightningnetwork/lnd#11672 ·
Maintainers usually reply within 1 day
-
test flake
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
lightningnetwork/lnd#11663 · 1 comment ·
Maintainers usually reply within 1 day
-
[flake]: lnwallet/test/bitcoind.TestLightningWalletBitcoindRPCPolling/spend_unconfirmed_outputsOpentest flake
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
lightningnetwork/lnd#11642 · 1 comment ·
Maintainers usually reply within 1 day
All issues in lightningnetwork/lnd
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
containers/gvisor-tap-vsock#796 ·
Maintainers usually reply within 2 days
-
external needs:triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
celestiaorg/celestia-node#5448 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 1 day
-
[Bug]: Azure SAS signing uses local time instead of UTC, shifting validity window on non-UTC hostsPossibly taken @huanghaoyuanhhy claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
zilliztech/milvus-backup#1418 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
projectdiscovery/nuclei#8423 ·
Maintainers usually reply within 1 day