Closed dracorl closed 2 years ago
Difficult without know your docker file.
However, this is how I ran the integration testing inside some of my project that required the combo bitcoind + cln https://github.com/laanwj/rust-clightning-rpc/blob/master/Dockerfile
lightningd needs to be able to connect to your bitcoind.
If you run both on the same machine, make sure you tell CLN:
bitcoin-rpcconnect=bitcoind
bitcoin-datadir=/bitcoin/.bitcoin
in /bitcoin/.bitcoin/bitcoin.conf I added rpcallowip=172.18.0.3
.
Also there is no config file in /root/.lightning so I created one and added these:
bitcoin-rpcuser=bitcoinrpc
bitcoin-rpcpassword=******
bitcoin-rpcconnect=172.18.0.2
bitcoin-rpcport=8332
I don't know if there is anything unnecessary but it is working now. Thank you very much for your answers
Hello, I'm trying to run bitcoin and lightning in Docker.
I used this command for run Bitcoin Daemon:
docker run -ti --name bitcoind_mainnet --network=bitcoin-net -v /datadrive/bitcoin/mainnet/bitcoind:/bitcoin/.bitcoin -p 8333:8333 -p 9735:9735 kylemanna/bitcoind
I checked bitcoin-cli with this command:
docker exec -it bitcoind_mainnet bash
output:
I used this command for run Lightning:
docker run -ti --name lightningd --network=bitcoin-net -v /datadrive/bitcoin/mainnet/bitcoind:/bitcoin/.bitcoin -v /datadrive/bitcoin/mainnet/lightningd:/root/.lightning elementsproject/lightningd --network=bitcoin --log-level=debug
and the output like this:
Could someone help me to understand the issue?