Litecore node with insight-lite-api preinstalled.
167
Configurations through env variables:
MODE: can be testnet or livenet (default)The node is configured to listen on port 3001 and will store chain relative data inside the /home/node/data folder.
docker run -e MODE=testnet -p 3001:3001 -v $(pwd)/data:/home/node/data --name ltc_node provable/litecore-node
tail -f $(pwd)/data/debug.log
curl http://localhost:3001/insight-lite-api/sync
{
"status": "syncing",
"blockChainHeight": 248869,
"syncPercentage": 53,
"height": 248869,
"error": null,
"type": "bitcore node"
}
Error: EACCES: permission denied, open '/home/node/data/bitcoin.conf'
Be careful the permission inside the docker are equals to those on the host, in particular:
uid and gid inside the docker should match those on the host. If not, overwrite them using the -u optiondocker run ... -u 1001:1001 provable/litecore-node
$(pwd)/data doesn't have set root access, otherwise changes it throughchown -R auser:agroup $(pwd)/data
Content type
Image
Digest
Size
656.6 MB
Last updated
about 6 years ago
docker pull provable/litecore-node