A dockerized Bitcoin client
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docker
.gitignore
Dockerfile
LICENSE
README.md

README.md

Bitcoin Docker container

A Docker container running Bitcoin as a service and exposing the REST API.

Prerequisites

Install Docker, e.g. on Debian/Ubuntu based systems

sudo apt install docker.io

Configuration

Modify docker/bitcoin.conf according to your environment (see doc).

Configure rpcallowip=... to allow the client/daemon to accept RPC connections outside the localhost and set an RPC username (rpcuser) and password (rpcpassword).

Make sure your config file includes the following line:

txindex=1

Usage

Building the docker container (latest tagged GitHub version of Bitcoin):

./docker/build.sh

Starting the container:

./docker/start.sh DATA_DIR

Attaching to the container:

./docker/attach.sh

Showing the Bitcoin log file:

./docker/show_log.sh