lightning-charge icon indicating copy to clipboard operation
lightning-charge copied to clipboard

Unable to run Docker with existing bitcoind/lightningd

Open freerko opened this issue 3 years ago • 0 comments

Hi,

as running lightning-charge directly doesn't work for me (see https://github.com/ElementsProject/lightning-charge/issues/86), I tried to run it via Docker. My existing c-lightning lives in /root/.lightning and Bitcoin in /var/lib/bitcoin on the same server, so I guess I have to run it like this:

root@server:~/lightning-charge# docker run -it -u id -u -v /root/.lightning:/data/lightning -v /var/lib/bitcoin:/data/bitcoin -p 9112:9112 shesek/lightning-charge --api-token MySecretToken

This just gives me this error, does it try to start an additional bitcoind, so it is not possible to run lightning-charge Docker with an bitcoind running outside of the Docker, it has to start it itself?

Starting bitcoind... waiting for RPC... Error: Config setting for -addnode only applied on test network when in [test] section.`

Inside of the container I can see that my existing bitcoind and c-lightning directories are available at /data/bitcoin and /data/lightning.

freerko avatar Feb 20 '22 18:02 freerko