Sign inSign up

farukter/bitcoind

By farukter

•Updated over 5 years ago

https://github.com/farukterzioglu/docker-bitcoind

Image
0

451

farukter/bitcoind repository overview

⁠docker-bitcoind (regtest)

A Docker configuration with defaults for running regtest (simulation) Bitcoin node, based on Alpine Linux⁠.

⁠Quick start

Requires that Docker be installed⁠ on the host machine.

⁠Run a simulation (regtest) bitcoin node using Bitcoin Core daemon (bitcoind)

$ docker run --name bitcoind -d \
    --volume /home/$USER/bitcoin_data:/root/.bitcoin \
    -p 127.0.0.1:443:18443 \
    farukter/bitcoind:regtest

⁠Send rpc commands

$ curl --user myuser:SomeDecentp4ssw0rd \
    --data-binary '{"jsonrpc":"1.0","id":"curltext","method":"getblockchaininfo","params":[]}' \
    -H 'content-type:text/plain;' \
    http://127.0.0.1:443/

⁠or build manually & configure bitcoind

$ git clone https://github.com/farukterzioglu/docker-bitcoind.git
$ cd docker-bitcoind
$ docker build -t bitcoind .

# Create some directory where your bitcoin data will be stored.
$ mkdir /home/$USER/bitcoin_data
$ cp ./bitcoin.conf /home/$USER/bitcoin_data
# Edit bitcoin.conf if required
$ nano /home/$USER/bitcoin_data/bitcoin.conf 

$ docker run --name bitcoind -d \
    --volume /home/$USER/bitcoin_data:/root/.bitcoin \
    -p 127.0.0.1:443:18443 \
    bitcoind

⁠Alternatives

Tag summary

Content type

Image

Digest

Size

40.3 MB

Last updated

over 5 years ago

docker pull farukter/bitcoind:regtest-0.21.0