Litecoin daemon that acts as a binary.
106
This document shows how to run the litecoin daemon as a binary.
More info about litecoin daemon options at https://litecoin.info/index.php/Litecoin.conf
docker build -t litecoin-daemon:v0.18.1 .
# or
make build
To run container as daemon use
docker run --name litecoin-daemon -P litecoin-daemon:v0.18.1
This will configure exposed ports dynamically.
To use a different data dir than /home/litecoin/.litecoin, change LITECOIN_DATA environment variable.
docker run -e LITECOIN_DATA=/var/lib/litecoind -P litecoin-daemon:v0.18.1
It's also possible to use any Litecoin argument from https://litecoin.info/index.php/Litecoin.conf
sudo docker run --name litecoin-mine -P litecoin-mine \
-regtest=1 \
-rpcallowip=127.0.0.1 \
-rpcauth='<userpw>'
Run in docker container
sudo docker run --name litecoin-mine -p 19332:19332 -p 19444:19444 litecoin-mine \
-regtest=1 \
-rpcallowip=127.0.0.1 \
-rpcauth='test:530827f38f93b43ed12af0b3ad25a288dc02ed74d6d7857862df51fc56c416f9'
Test JSON-RPC
curl http://test:-530827f38f93b43ed12af0b3ad25a288dc02ed74d6d7857862df51fc56c416f9=@0.0.0.0:19332/ \
-d '{"jsonrpc":"1.0","id":"1","method":"getnetworkinfo","params":[]}'
Content type
Image
Digest
Size
68.5 MB
Last updated
about 5 years ago
docker pull exceltior/litecoin-daemon:0.18.1