To run container, please create bitcoin-abc.conf file with all desired configuration. Then just run the following command:
docker run -d -p "0.0.0.0:{desired_rpc_port}:{rpcport_from_bitcoin-abc.conf}" -p "0.0.0.0:{desired_node_port}:8333" -v "{/path/to/bitcoin-abc.conf}:/bitcoin-abc/bitcoin-abc.conf:ro" -v "{/path/to/blockchain/folder}:/bitcoin-abc/blockchain" --restart always --name bitcoin_cash_node martinsolie/bitcoin-abc:0.17.0
Example run command:
docker run -d -p "0.0.0.0:8332:8332" -p "0.0.0.0:8333:8333" -v "/opt/bitcoin-abc/bitcoin-abc.conf:/bitcoin-abc/bitcoin-abc.conf:ro" -v "/opt/bitcoin-abc/blockchain:/bitcoin-abc/blockchain" --restart always --name bitcoin_cash_node martinsolie/bitcoin-abc:0.17.0
Example bitcoin-abc.conf for example run command:
testnet=0
server=1
txindex=1
whitelist=127.0.0.1
maxmempool=1000
maxconnections=8
rpcuser=bch_rpc_user
rpcpassword=S0meseCURepaSsS
rpcport=8332
rpcallowip=0.0.0.0/0
rpcservertimeout=60
rpcthreads=8
rpcworkqueue=32
Content type
Image
Digest
Size
83.4 MB
Last updated
almost 5 years ago
docker pull martinsolie/bitcoin-abc:0.24.6