docker: update instructions and Dockerfile for recent p2p port change
Error `connection refused` was thrown when user tries to get "Alice" to connect to "Bob" node due to port mismatch introduced in this change [1] here. This commit updates the port value to reflect the new change introduced in [1]. Reference: [1] https://github.com/lightningnetwork/lnd/commit/72772ce4df051501cf4936e9fedd62bb13463bf2 Chanes in this commit: * Update references to old port value * Omit specifying port during lncli connect * Fix typo
This commit is contained in:
1 parent
419c2ac206
commit
5e7655be54
3 files changed
+6
-6
No files matched your search
+4
-4
@@ -115,7 +115,7 @@ bob$ lncli getinfo
|
||||
$ docker inspect "bob" | grep IPAddress
|
||||
|
||||
# Connect "Alice" to the "Bob" node:
|
||||
alice$ lncli connect <bob_pubkey>@<bob_host>:10011
|
||||
alice$ lncli connect <bob_pubkey>@<bob_host>
|
||||
|
||||
# Check list of peers on "Alice" side:
|
||||
alice$ lncli listpeers
|
||||
@@ -124,7 +124,7 @@ alice$ lncli listpeers
|
||||
{
|
||||
"pub_key": "0343bc80b914aebf8e50eb0b8e445fc79b9e6e8e5e018fa8c5f85c7d429c117b38",
|
||||
"peer_id": 1,
|
||||
"address": "172.19.0.4:10011",
|
||||
"address": "172.19.0.4:5656",
|
||||
"bytes_sent": "357",
|
||||
"bytes_recv": "357",
|
||||
"sat_sent": "0",
|
||||
@@ -250,7 +250,7 @@ bob$ lncli walletbalance
|
||||
In order to be more confident with `lnd` commands I suggest you to try
|
||||
to create a mini lightning network cluster ([Create lightning network cluster](#create-lightning-network-cluster)).
|
||||
|
||||
In this section we will try to connect our node to the faucent/hub node
|
||||
In this section we will try to connect our node to the faucet/hub node
|
||||
which will create with as the channel and send as some amount of
|
||||
bitcoins. The schema will be following:
|
||||
|
||||
@@ -295,7 +295,7 @@ After `btcd` synced, connect `Alice` to the `Faucet` node.
|
||||
$ docker-compose up -d "alice"; docker exec -i -t "alice" bash
|
||||
|
||||
# Connect "Alice" to the "Faucet" node:
|
||||
alice$ lncli connect <faucet_identity_address>@<faucet_host>:10011
|
||||
alice$ lncli connect <faucet_identity_address>@<faucet_host>
|
||||
```
|
||||
|
||||
After connection was achieved the `Faucet` node should create the channel
|
||||
|
||||
@@ -3,7 +3,7 @@ FROM golang:1.8
|
||||
MAINTAINER Olaoluwa Osuntokun <laolu@lightning.network>
|
||||
|
||||
# Expose lnd ports (server, rpc).
|
||||
EXPOSE 10011 10009
|
||||
EXPOSE 5656 10009
|
||||
|
||||
# Force Go to use the cgo based DNS resolver. This is required to ensure DNS
|
||||
# queries required to connect to linked containers succeed.
|
||||
|
||||
Reference in new issue
Block a user