Currently the latest image on lightninglabs/lnd is the 0.4.1-beta commit=d0c0e5c7c256e430696d52ac6f6d67217a7d7652 build and there is no other tag on dockerhub.
@Roasbeef I'd like to write a helm chart for lnd, but I need an up to date lnd image first. Any chance you can update the images on dockerhub? They are currently ~8 months out of date.
I'm happy to help out in any way possible - just let me know.
I went ahead and got v0.5.1-beta to build for me, and pushed up an image here. I'd love to get an official image built, but this will work for me for now.
I had to apply the following updates to v0.5.1-beta to get it to build:
commit ab5fd865f966388798b2667e3dbb0d8b87a894a6
Author: Tom Dickman <[email protected]>
Date: Sat Jan 12 19:18:24 2019 -0600
Bump golang version and remove broken ltcd dependency
diff --git a/Gopkg.lock b/Gopkg.lock
index 2d905b92..cefff607 100644
--- a/Gopkg.lock
+++ b/Gopkg.lock
@@ -289,17 +289,6 @@
pruneopts = "UT"
revision = "ac4d9da8f1d67c95f1fafdc65e1a4902d6f5a940"
-[[projects]]
- digest = "1:3402f61a37575d808e4499dbfda1ab756d570c66cdfed492b84a936bbb909533"
- name = "github.com/ltcsuite/ltcd"
- packages = [
- "chaincfg",
- "chaincfg/chainhash",
- "wire",
- ]
- pruneopts = "UT"
- revision = "cdab10132e8c6e4a3ffd112dba54791946d28906"
-
[[projects]]
digest = "1:a0bf6f18ffeb4a45fd00d5eb16d918769bbe0e2dc7824e95abf05a3306f60102"
name = "github.com/miekg/dns"
@@ -541,8 +530,6 @@
"github.com/kkdai/bstream",
"github.com/lightninglabs/neutrino",
"github.com/lightningnetwork/lightning-onion",
- "github.com/ltcsuite/ltcd/chaincfg",
- "github.com/ltcsuite/ltcd/wire",
"github.com/miekg/dns",
"github.com/tv42/zbase32",
"github.com/urfave/cli",
diff --git a/Gopkg.toml b/Gopkg.toml
index 978efa5a..6326188a 100644
--- a/Gopkg.toml
+++ b/Gopkg.toml
@@ -50,10 +50,6 @@
name = "github.com/lightningnetwork/lightning-onion"
revision = "ac4d9da8f1d67c95f1fafdc65e1a4902d6f5a940"
-[[constraint]]
- name = "github.com/ltcsuite/ltcd"
- revision = "cdab10132e8c6e4a3ffd112dba54791946d28906"
-
[[constraint]]
name = "github.com/miekg/dns"
revision = "79bfde677fa81ff8d27c4330c35bda075d360641"
diff --git a/docker/lnd/Dockerfile b/docker/lnd/Dockerfile
index 250fb35d..42c1ca36 100644
--- a/docker/lnd/Dockerfile
+++ b/docker/lnd/Dockerfile
@@ -1,4 +1,4 @@
-FROM golang:1.10-alpine as builder
+FROM golang:1.11-alpine as builder
MAINTAINER Olaoluwa Osuntokun <lightning.engineering>
@@ -10,7 +10,7 @@ COPY . /go/src/github.com/lightningnetwork/lnd
ENV GODEBUG netdns=cgo
# Install dependencies and install/build lnd.
-RUN apk add --no-cache \
+RUN apk add --no-cache --update alpine-sdk \
git \
make \
&& cd /go/src/github.com/lightningnetwork/lnd \
I've come across this Today when moving lnd to a new machine.
https://hub.docker.com/r/lightninglabs/lnd
"A container image that packages the _latest_ release of lnd."
Despite the description, it's not the latest, it's 0.4.1. Although others have provided more up to date images, I'd feel more comfortable using an official source.
The version on docker hub has known security exploits and people can lose their money by running it:
https://lists.linuxfoundation.org/pipermail/lightning-dev/2019-September/002174.html
It's probably worth either deleting the version on hub.docker.com or updating it to 0.8.1.
@rbrooklyn I personally brought this to their attention many months ago, but there seemed to be zero interest in acknowledging it, let alone fixing it.
Closing this as we don't plan to maintain an image on there and the account has now been deleted.
Out of curiousity - what's the reasoning for not maintaining an image?
Most helpful comment
I went ahead and got v0.5.1-beta to build for me, and pushed up an image here. I'd love to get an official image built, but this will work for me for now.
I had to apply the following updates to v0.5.1-beta to get it to build: