add named volume to lnd service for persisting data accross container lifecycle

This commit is contained in:
yancy ribbens authored and Yancy Ribbens committed 2019-11-08 11:30:41 -06:00
1 parent d50b3a9c81
commit 5c4edcab8f
3 files changed
+17 -8

No files matched your search

+6 -2
View File
@@ -63,8 +63,12 @@ bitcoin into.
# Init bitcoin network env variable:
$ export NETWORK="simnet"
# Create persistent volumes for alice and bob.
docker volume create simnet_lnd_alice
docker volume create simnet_lnd_bob
# Run the "Alice" container and log into it:
$ docker-compose run -d --name alice lnd_btc
$ docker-compose run -d --name alice --volume simnet_lnd_alice:/root/.lnd lnd_btc
$ docker exec -i -t alice bash
# Generate a new backward compatible nested p2sh address for Alice:
@@ -90,7 +94,7 @@ Connect `Bob` node to `Alice` node.
```bash
# Run "Bob" node and log into it:
$ docker-compose run -d --name bob lnd_btc
$ docker-compose run -d --name bob --volume simnet_lnd_bob:/root/.lnd lnd_btc
$ docker exec -i -t bob bash
# Get the identity pubkey of "Bob" node: