Bitcoin full node on Docker, built from source.
Bitcoin full node on Docker, built from source.
~$ git clone https://github.com/f-dufour/bitcoin-core-docker.git
~$ cd bitcoin-core-docker
# Edit volumes in docker-compose.yaml
~$ make up
/root/.bitcoin
.bitcoin.conf.template
configuration template file is available in the repo. Name it bitcoin.conf
on the persistent drive for bitcoind
to use it.You can use the --build-arg
flag to tweak your Docker build.
Software | Default version | –build-arg |
---|---|---|
Ubuntu | 20.04 | ubuntuVersion |
Bitcoin | v23.0 | bitcoinVersion |
Note: Only Berkeley db 4.8.30.NC is supported and provided
Example:
~$ ~$ docker build --build-arg bitcoinVersion=v0.13.1 --build-arg ubuntuVersion=bionic -t yourname/bitcoin:0.13.1 .
bitcoin.conf
(regtest also available)