A bitcoin-core docker image
Go to file
2017-06-27 02:19:56 +01:00
0.11 Upgrade Alpine-based images to alpine@3.6 2017-06-27 02:19:56 +01:00
0.12 Upgrade Alpine-based images to alpine@3.6 2017-06-27 02:19:56 +01:00
0.13 Upgrade Alpine-based images to alpine@3.6 2017-06-27 02:19:56 +01:00
0.14 Upgrade Alpine-based images to alpine@3.6 2017-06-27 02:19:56 +01:00
.travis.yml Add support for bitcoind@0.14.0 2017-06-20 10:11:52 +01:00
LICENSE Add support for bitcoind@0.14.0 2017-06-20 10:11:52 +01:00
README.md Add support for bitcoind@0.14.2 2017-06-21 02:17:01 +01:00

seegno/bitcoind

A bitcoind docker image.

seegno/bitcoind seegno/bitcoind seegno/bitcoind seegno/bitcoind

What is bitcoind?

from bitcoinwiki

bitcoind is a program that implements the Bitcoin protocol for remote procedure call (RPC) use. It is also the second Bitcoin client in the network's history.

Usage

How to use this image

This image contains the main binaries from the Bitcoin Core project - bitcoind, bitcoin-cli and bitcoin-tx. It behaves like a binary, so you can pass any arguments to the image and they will be forwarded to the bitcoind binary:

$ docker run --rm -it seegno/bitcoind \
  -printtoconsole \
  -regtest=1 \
  -rpcallowip=172.17.0.0/16 \
  -rpcpassword=bar \
  -rpcuser=foo

By default, bitcoind will run as as user bitcoin for security reasons and with its default data dir (~/.bitcoin). If you'd like to customize where bitcoind stores its data, you must use the BITCOIN_DATA environment variable. The directory will be automatically created with the correct permissions for the bitcoin user and bitcoind automatically configured to use it.

$ docker run --env BITCOIN_DATA=/var/lib/bitcoind --rm -it seegno/bitcoind \
  -printtoconsole \
  -regtest=1

You can also mount a directory it in a volume under /home/bitcoin/.bitcoin in case you want to access it on the host:

$ docker run -v ${PWD}/data:/home/bitcoin/.bitcoin -it --rm seegno/bitcoind \
  -printtoconsole \
  -regtest=1

You can optionally create a service using docker-compose:

bitcoind:
  image: seegno/bitcoind
  command:
    -printtoconsole
    -regtest=1

Image variants

The seegno/bitcoind image comes in multiple flavors:

seegno/bitcoind:latest

Points to the latest release available of Bitcoin Core. Occasionally pre-release versions will be included.

seegno/bitcoind:<version>

Based on a slim Debian image, targets a specific version branch or release of Bitcoin Core (e.g. 0.14.0, 0.14).

seegno/bitcoind:<version>-alpine

Based on Alpine Linux with Berkeley DB 4.8 (cross-compatible build), targets a specific version branch or release of Bitcoin Core (e.g. 0.14.0, 0.14).

Supported Docker versions

This image is officially supported on Docker version 1.12, with support for older versions provided on a best-effort basis.

License

License information for the software contained in this image.

License information for the seegno/docker-bitcoind docker project.