deploy a bitcoind
The folder _bitcoin/ in this repo is linked as ~/.bitcoin/ on your local machine so that both docker and a standard alone bitcoin core client can share the same folder. The local ~/.bitcoin is mounted as /data/.bitcoin in the container.
Check the bitcoin.conf file in the _bitcoin/ folder.
testnet=1(the initial setting of this repo) will connect to the test net. The test net is designed as a safer testing environment for developers.regtest=1connect to the regtest netblocksonly=1only download blockchain data, no mining is involved- If no network parameter is given, or uncommenting the above two parameters, the bitcoin core client will by default connect to the main net.
git clone https://github.com/fenggeorgeyu/bitcoind-docker-deploy.git
cd bitcoind-docker-deploy- pull image
make pull- this will pull the bitcoind container image from dockerhub
- create container
make create- this will run a bitcoind server in docker
- login the shell of the container
make shell
- stop the container
make stop
- delete the containter
make delete
docker exec -it bitcoind bitcoind --help
docker exec -it bitcoind bitcoind --version
docker exec -it bitcoind bitcoin-cli --help
docker exec -it bitcoind bitcoin-cli -getinfo
docker exec -it bitcoind bitcoin-cli getblockcount- image from:
lncm/bitcoindin dockerhub