Sign inSign up

blocknetdx/monacoin

By blocknetdx

Updated about 6 years ago

Official Blocknet Monacoin Images

Image
1

2.4K

blocknetdx/monacoin repository overview

Official Blocknet Bitcoin Images

These mona docker images can be found on the docker hub: https://hub.docker.com/r/blocknetdx/mona/

mona

These mona images are optimized for use with the Blocknet DX.

Note

These images are not a replacement or endorsement of the mona project (https://github.com/monacoinproject/monacoin).

Simple

Run a simple mona node on port 9401:

docker run -d --name=mona -p 9401:9401 blocknetdx/mona:latest

Persist blockchain w/ volumes

Run a mona node that persists the blockchain on a host directory. Recommended to avoid time consuming resyncs when updating to later container versions.

docker run -d --name=mona -p 9401:9401 -v=/crypto/mona/config:/opt/blockchain/config -v=/crypto/mona/data:/opt/blockchain/data blocknetdx/mona:0.17.0.1

Automatically restart the container

See https://docs.docker.com/engine/admin/start-containers-automatically/

--restart=no|on-failure:retrycount|always|unless-stopped

docker run -d --restart=no --name=mona -p 9401:9401 blocknetdx/mona:0.17.0.1 monacoind -daemon=0 -rpcuser= -rpcpassword=123
docker run -d --restart=on-failure:10 --name=mona -p 9401:9401 blocknetdx/mona:0.17.0.1 monacoind -daemon=0 -rpcuser= -rpcpassword=123
docker run -d --restart=unless-stopped --name=bitcoin -p 9401:9401 blocknetdx/mona:0.17.0.1 monacoind -daemon=0 -rpcuser= -rpcpassword=123
docker run -d --restart=always --name=bitcoin -p 9401:9401 blocknetdx/mona:0.17.0.1 monacoind -daemon=0 -rpcuser= -rpcpassword=123

Container shell access

To login to the mona container and run RPC commands use the following command:

docker exec -it mona /bin/bash

Default monacoin.conf

The default configuration is below. A custom configuration file can be passed to the mona node container through the /opt/blockchain/config volume. Some of these parameters can also be adjusted on the command line.

datadir=/opt/blockchain/data

dbcache=256
maxmempool=512

port=8333    # testnet: 18333
rpcport=8332 # testnet: 18332

listen=1
server=1
logtimestamps=1
logips=1

rpcallowip=127.0.0.1
rpctimeout=15
rpcclienttimeout=15

License

This code is licensed under the Apache 2.0 License. Please refer to the LICENSE.

Tag summary

Content type

Image

Digest

Size

218.3 MB

Last updated

about 7 years ago

docker pull blocknetdx/monacoin