Skip to content

Unable to run Docker with existing bitcoind/lightningd #87

@freerko

Description

@freerko

Hi,

as running lightning-charge directly doesn't work for me (see #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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions