The method below is related for x86/x64 platform. For Arm, please access this section: https://github.com/ilorivero/htmlcoin_docker_arm
This repository contains the Dockerfile and scripts to build a HTMLCoin node version 2.5 Docker image on Ubuntu 18.04 and 20.04.
Clone this repository with
git clone https://github.com/ilorivero/htmlcoin_docker.git
cd ./htmlcoin_docker/Ubuntu_18.04/
docker build -t htmlcoin .
As there is no bitcoin repository for Ubuntu 20.04, I did some workarounds to make it work. Added the bionic repository, repository keys and configured time zone for unattended install.
cd ./htmlcoin_docker/Ubuntu_20.04/
chmod 777 tzscript.sh
docker build -t htmlcoin .
This will preserve the blockchain data.
docker volume create --name=data
docker run -d --rm --name htmlcoin -v data:/root/.htmlcoin/ htmlcoin
To check if the htmlcoin container is running:
docker exec -i -t htmlcoin /bin/bash
You should be prompted with the Ubuntu command line.
root@0670472b9f64:/HTMLCOIN#
Check the Ubuntu version:
lsb_release -a
You shoud get something like this:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04 LTS
Release: 20.04
Codename: focal
To check if HTMLCoin daemon is running, call the htmlcoin-cli app with --getinfo parameter:
htmlcoin-cli --getinfo
The result should be something like this:
{
"version": 2050000,
"protocolversion": 70017,
"blocks": 0,
"timeoffset": 0,
"connections": 1,
"proxy": "",
"difficulty": {
"proof-of-work": 2807.914485770511,
"proof-of-stake": 1879528578.109458
},
"chain": "main",
"moneysupply": 0,
"walletversion": 169900,
"balance": 0.00000000,
"stake": 0.00000000,
"keypoololdest": 1594231883,
"keypoolsize": 1000,
"paytxfee": 0.00000000,
"relayfee": 0.00400000,
"warnings": ""
}