https://github.com/binaryage/bitcoind-docker
A docker container for running bitcoind node
https://github.com/binaryage/bitcoind-docker
Last synced: 9 months ago
JSON representation
A docker container for running bitcoind node
- Host: GitHub
- URL: https://github.com/binaryage/bitcoind-docker
- Owner: binaryage
- License: mit
- Created: 2014-03-19T23:21:45.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-07-06T18:44:53.000Z (over 11 years ago)
- Last Synced: 2025-03-26T10:48:09.602Z (10 months ago)
- Language: Shell
- Homepage:
- Size: 167 KB
- Stars: 10
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker-ized bitcoind server
# Installation
#### Prerequisities
* grab some VPS (tested Digital Ocean with Ubuntu 13.10) - min 30GB disk, 2GB mem
* [install Docker](https://www.docker.io/gettingstarted/#h_installation)
* don't worry about losing containers, all esential data will be persistent in the main host filesystem
* technically essential data folders will be mapped via docker volumes to `/var/lib/bitcoind-docker/*`
#### Installation
Following script will build and add a new container in your docker:
1. `binaryage/bitcoind` which is ([bitcoind](https://github.com/bitcoin/bitcoin) with mapped database to host's `/var/lib/bitcoind-docker/bitcoind`)
Steps:
git clone git@github.com:binaryage/bitcoind-docker.git
cd bitcoind-docker
touch .env
echo "export BITCOIND_RPC_USER=some_user" >> .env
echo "export BITCOIND_RPC_PASSWORD=some_password" >> .env
./do build
./do run
Note: Inspect etc/env and see more overrides you can add to your custom .env
##### Stop
./do stop
##### Start
./do start
##### Upgrade
./do stop
git pull
./do build
./do rm
./do run
##### RPC
./do rpc getinfo
note: if you get error about connection to bitcoind, it may be that bitcoind is reindexing/parsing blockchaing at the beginning. Give it some time after you run/start the container.
## Credits
* Docker is awesome!
* Inspiration from [srid's discourse-docker](https://github.com/srid/discourse-docker)
[Licensed under MIT](LICENSE)