ruimarinho / docker-bitcoin-core

A bitcoin-core docker image
https://hub.docker.com/r/ruimarinho/bitcoin-core/
MIT License
365 stars 209 forks source link

How to copy bitcoin.conf in external volume? #84

Closed abhyankar-amey closed 4 years ago

abhyankar-amey commented 4 years ago

Hello,

I want to copy bitcoin.conf on external volume i.e. /DataDrive/CoinData/Bitcoin directory. How to do that? /DataDrive/CoinData/Bitcoin is a directory structure on my base machine.

My docker-compose.yml file =

bitcoind: image: btc-docker/bitcoin-core command: -printtoconsole -regtest=1 volumes:

ruimarinho commented 4 years ago

Mount your host directory on the /home/bitcoin/ path as exemplified in the README. https://github.com/ruimarinho/docker-bitcoin-core#how-to-use-this-image

abhyankar-amey commented 4 years ago

But then, that way I can not follow my directory structure. My requirement is to have 2 folders. 1 folder the data Other folder contains client data. I will be sending RCP calls from in house developed engine. As of now I am achieving this from bitcoin-core GUI software in Ubuntu.