reddcoind
Flexible multi-arch (amd & amd64) Reddcoin Core Docker image
879
This repo builds reddcoind in an auditable way, and packages it into a minimal Docker containers provided for various CPU architectures.
The work here was initially based on lncm/docker-bitcoind and ruimarinho/docker-bitcoin-core, but has significantly diverged since.
git-tags (and most commits) are signed by ABEDC4489B9188E45C2342A82E91240B293BA5D3git-tags (and most commits) are opentimestamps-edgit tag push, the entire process is automated, with each step printed, and the code aiming to be easy to followqemumake check test suite, BerkeleyDB is build separately hereamd64, arm64v8, and arm32v7git-tags are build automatically, and with an auditable tracegit tag pushes result Docker image to Docker Hublnd version gets overridden, previous one is preserved)final images are based on Alpine for minimum base sizestrippedgit-tag build is tagged with a unique tag numberNOTE: ZMQ
blockandtxports are set to28332and28333respectively.
NOTE: For an always up-to-date list see: https://hub.docker.com/repository/docker/reddcoincore/reddcoind/tags
v4.22.9v4.22.9rc2v4.22.9rc1v4.22.8v4.22.7First pull the image from Docker Hub:
docker pull reddcoincore/reddcoind:v4.22.9
NOTE: Running above will automatically choose native architecture of your CPU.
Or, to pull a specific CPU architecture:
docker pull reddcoincore/reddcoind:v4.22.9-arm64v8
First of all, create a directory in your home directory called .reddcoin
Next, create a config file. You can take a look at the following sample: thebox-compose-system (1).
Some guides on how to configure reddcoin can be found here (reddcoin git repo)
Then to start reddcoind, run:
docker run -it --rm --detach \
-v ~/.reddcoin:/data/.reddcoin \
-p 45444:45444 \
-p 45443:45443 \
-p 18444:18444 \
-p 28333:28333 \
--name reddcoind \
reddcoincore/reddcoind:v4.22.9
That will run reddcoind such that:
~/.reddcoin on your host machine,45443 will be reachable for the RPC communication,45444 will be reachable for the peer-to-peer communication,28332 will be reachable for ZMQ block notifications,28333 will be reachable for ZMQ transaction notifications,reddcoind,reddcoind binary is run as unprivileged user reddcoind (UID=1000),To issue any commands to a running container, do:
docker exec -it reddcoind BINARY COMMAND
Where:
BINARY is either reddcoind, reddcoin-cli, reddcoin-tx, (or reddcoin-wallet on v0.18+) andCOMMAND is something you'd normally pass to the binaryExamples:
docker exec -it reddcoind reddcoind --help
docker exec -it reddcoind reddcoind --version
docker exec -it reddcoind reddcoin-cli --help
docker exec -it reddcoind reddcoin-cli -getinfo
docker exec -it reddcoind reddcoin-cli getblockcount
Here is a docker-compose.yml for mainnet
version: '3'
services:
reddcoin:
container_name: reddcoind
user: 1000:1000
image: reddcoincore/reddcoind:v4.22.9
volumes:
- ./reddcoin:/data/.reddcoin
restart: on-failure
environment:
- RPC_SERVER=1
- RPC_USERNAME=[create a user name]
- RPC_PASSWORD=[UseALongAndHardToGuessPassWord]
- RPC_PORT=45443
- RPC_ALLOW_IP=127.0.0.1/0
stop_grace_period: 15m30s
ports:
- "45443:45443"
- "45444:45444"
- "28332:28332"
- "28333:28333"
First, ensure that the reddcoin/ folder is in the directory containing docker-compose.yml.
Then, Docker Compose will mount the reddcoin/ folder to /data/.reddcoin.
Here are some possible reasons why.
The permissions for the reddcoin data direct is assumed to be UID 1000 (first user).
If you have a different setup, please do the following
# where ".reddcoin" is the data directory
sudo chown -R 1000.1000 $HOME/.reddcoin
Content type
Image
Digest
sha256:8169d7ebd…
Size
14 MB
Last updated
over 1 year ago
docker pull reddcoincore/reddcoind:v4.22.9