- 2019-09-10
- v2.0.0
Run waykichain coind inside a docker container!
- Docker 17.05 or higher is required
- At least 4GB RAM (Docker -> Preferences -> Advanced -> Memory -> 4GB or above)
- If the build below fails, make sure you've adjusted Docker Memory settings and try again.
git clone https://github.com/WaykiChain/WaykiChain.git
cd WaykiChain/Docker && sh ./bin/build-waykicoind.sh
docker pull wicc/waykicoind
- create a host dir to keep container data (you are free to choose your own preferred dir path)
- For mainnet:
sudo mkdir -p /opt/docker-instances/waykicoind-main
- For testnet:
sudo mkdir -p /opt/docker-instances/waykicoind-test
- For mainnet:
- first, cd into the above created node host dir and create
data
andconf
subdirs:sudo mkdir data conf
- copy the entire Docker/bin dir from WaykiChain repository:
sudo cp -r ${your_path_of_WaykiChain}/Docker/bin ./
- copy WaykiCoind.conf into
conf
dir from WaykiChain repository:sudo cp -r ${your_path_of_WaykiChain}/Docker/WaykiChain.conf ./conf/
- modify content of
WaykiCoind.conf
accordingly- For mainnet, please make sure
nettype=main
is set - For testnet, please make sure only
nettype=test
is set - For regtest, please make suer only
nettype=regtest
is set - For common nodes (no mining), please set
gen=0
to avoid computing resources waste
- For mainnet, please make sure
- launch the node container:
- For mainnet, run
$sh ./bin/run-waykicoind-main.sh
- For testnet, run
$sh ./bin/run-waykicoind-test.sh
- For mainnet, run
docker exec -it waykicoind-test coind help
docker exec -it waykicoind-test coind stop
$docker exec -it waykicoind-test coind getpeerinfo
$docker exec -it waykicoind-test coind getinfo
Q | A |
---|---|
How to modify JSON RPC port | Two options: rpcport=6968 ) |
How to run a testnet | modify WaykiChain.conf by adding testnet=test , |
How to run a regtest | modify WaykiChain.conf by adding regtest=regtest , |
How to run a mainnet | modify WaykiChain.conf by adding regtest=main , |