Skip to content

lncm/docker-lnd-unlock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LND Unlock Container

Build on deploy Version Docker Pulls Count

This is a helper container for unlocking LND for unattended installs.

For best results use this within docker-compose.

Deprecation notice

This is deprecated because there is a feature in LND v0.13.0-beta which allows for unlocking

To use simply just add your desired password in the config file.

Example

wallet-unlock-password-file=/path/to/passwordfile
wallet-unlock-allow-create=true

Clone directory

docker pull lncm/lnd-unlock

Pathnames Required

  • /lnd/data/chain/bitcoin/$NETWORK/admin.macaroon (Where: $NETWORK is the network. This is the LND default path. Best to leave this alone)
  • /secrets/lnd-password.txt (This is the unlock password. Must be readable by this container)

Environment Variables

  • LNDHOSTNAME (default: lnd) : This is the hostname for the lnd instance. Can be an IP
  • HOSTIPPORT (default: 10.254.2.3:8080) : This is the IP and port for the LND rest interface.
  • NETWORK (default: mainnet) : This is the network that LND uses and how to find the correct macaroon file
  • SLEEPTIME (default: 30) : This is how often we will check to see if its unlocked. There is a default value so you do not need to set it.

Quick run

docker run -d --rm \
            lncm/lnd-unlock:1.0.3 \
            --name=lnd-unlock \
            -v $HOME/lnd:/lnd \
            -v $HOME/secrets:/secrets \
            -e HOSTIPPORT=10.254.2.3:8080 \
            -e NETWORK=mainnet \
            -e SLEEPTIME=30 \
            -e LNDHOSTNAME=10.254.2.3