# from host
./compose.sh up [-d]
# from host
./compose.sh down [-v]
# from host
docker exec -it lnd-docker-mybitcoind-1 /bin/sh
# from container
bitcoin-cli -datadir=/data/.bitcoin -regtest getblockcount
# from host
curl --user rpcuser:rpcpass --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "getblockcount", "params": []}' -H 'content-type: text/plain;' http://127.0.0.1:8332/
# from host
docker exec -it lnd-docker-mylnd1-1 /bin/sh
# from container
lncli -n regtest --lnddir=/data/lnd getinfo
add mylndx
- docker-compose.yml
- copy
mylnd1
and paste asmylndx
. - replace
lnd-data1
tolnd-datax
inmylndx.volumes
section. - replace
./lnddata/data2:/mnt
to./lnddata/datax:/mnt
inmylndx.volumes
section. - add
sleep 1d &&
tolnd-datax.entrypoint
section aftermkdir
line. - edit
lnd-datax.ports
section to avoid duplication with others. - add
lnd-datax
to rootvolumes
section. - run
mkdir lnddata/datax
- run
./compose.sh up
- run
docker exec -it lnd-docker-mylndx-1 /bin/sh
- run
lnd --configfile=/data/lnd.conf --lnddir=/data/lnd > /dev/null&
- run
cp /data/lnd/tls.* /mnt/
- run
cd /data/lnd/data/chain/bitcoin/regtest/ && cp admin.macaroon macaroons.db wallet.db /mnt/
- run
exit
- run
./compose.sh down -v
- edit docker-compose.yml and remove
sleep
line.
Generate 101 blocks and reward to 'lnd-docker-lnd-1' address.
curl --user rpcuser:rpcpass --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "generatetoaddress", "params": [101, "bcrt1q4zhf82t39pfh4zsdv3r8n3ljc32mzx4x64r6fa"]}' -H 'content-type: text/plain;' http://127.0.0.1:8332/