https://github.com/farukterzioglu/docker-bitcoind
A docker image for bitcoind (regtest)
https://github.com/farukterzioglu/docker-bitcoind
bitcoin bitcoin-core buidl regtest rpc
Last synced: 7 months ago
JSON representation
A docker image for bitcoind (regtest)
- Host: GitHub
- URL: https://github.com/farukterzioglu/docker-bitcoind
- Owner: farukterzioglu
- Created: 2019-10-06T10:25:47.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-02-07T21:59:09.000Z (about 5 years ago)
- Last Synced: 2025-02-24T10:47:39.906Z (about 1 year ago)
- Topics: bitcoin, bitcoin-core, buidl, regtest, rpc
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/farukter/bitcoind
- Size: 31.3 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.mainnet.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
```bash
$ docker run --name bitcoind -d \
--volume $HOME/bitcoin_mainnet:/root/.bitcoin \
-p 127.0.0.1:8443:8443 \
farukter/bitcoind:mainnet
```
## Send rpc commands
```bash
$ curl --user myuser:SomeDecentp4ssw0rd \
--data-binary '{"jsonrpc":"1.0","id":"curltext","method":"getblockchaininfo","params":[]}' \
-H 'content-type:text/plain;' \
http://127.0.0.1:8443/
```
## or build manually & configure bitcoind
```bash
$ git clone https://github.com/farukterzioglu/docker-bitcoind.git
$ cd docker-bitcoind
$ docker build -f Dockerfile.mainnet -t bitcoind-mainnet .
# Create some directory where your bitcoin data will be stored.
$ mkdir $HOME/bitcoin_mainnet
$ cp ./bitcoin.conf.mainnet $HOME/bitcoin_mainnet/bitcoin.conf
# Edit bitcoin.conf if required
$ nano $HOME/bitcoin_mainnet/bitcoin.conf
$ docker run --name bitcoind -d \
--volume $HOME/bitcoin_mainnet:/root/.bitcoin \
-p 127.0.0.1:8443:8443 \
bitcoind-mainnet
```