# Use 'curl -sSL https://get.daocloud.io/docker | sh' instead of this line
# when your server is in China.
wget -qO- https://get.docker.com/ | sh
service docker start
service docker status
Build Docker Images
cd /work
git clone https://github.com/btccom/btcpool.git
cd btcpool/docker/bitcoind/v0.15.1
# If your server is in China, please check "Dockerfile" and uncomment some lines.
# If you want to enable testnet3, please uncomment several lines behind `# service for testnet3`
# build
docker build -t bitcoind:0.15.1 .
# docker build --no-cache -t bitcoind:0.15.1 .
# mkdir for bitcoind
mkdir -p /work/bitcoind
# bitcoin.conf
touch /work/bitcoind/bitcoin.conf
bitcoin.conf example
rpcuser=bitcoinrpc
# generate random rpc password:
# $ strings /dev/urandom | grep -o '[[:alnum:]]' | head -n 30 | tr -d '\n'; echo
rpcpassword=xxxxxxxxxxxxxxxxxxxxxxxxxx
rpcthreads=4
rpcallowip=172.16.0.0/12
rpcallowip=192.168.0.0/16
rpcallowip=10.0.0.0/8
# use 1G memory for utxo, depends on your machine's memory
dbcache=1000
# set maximum BIP141 block weight
blockmaxweight=4000000