Sign inSign up

okexchain/fullnode-testnet

By okexchain

Updated about 2 years ago

Image
1

3.7K

okexchain/fullnode-testnet repository overview

Run OKExChain testnet fullnode with docker

1. Download the docker image
docker pull okexchain/fullnode-testnet:latest
2. Download the snapshot

You can download the testnet snapshot from here. For example:

// 1.download the snapshpot
wget -c https://ok-public-hk.oss-cn-hongkong.aliyuncs.com/cdn/okexchain/snapshot/okexchain-v0.16.8-testnet-20210305-height_1121961.tar.gz

// 2.generate data directory
mkdir -p ~/okexchain/testnet

// 3.unzip the snapshot to data directory
tar -zxvf okexchain-v0.16.8-testnet-20210305-height_1121961.tar.gz -C ~/okexchain/testnet/
3. Run docker container
docker run -d --name okexchain-testnet-fullnode -v ~/okexchain/testnet/data:/root/.okexchaind/data/ -p 8545:8545 okexchain/fullnode-testnet:latest
4. View the running log
docker logs --tail 100 -f okexchain-testnet-fullnode

You can stop the docker container with command: docker stop okexchain-testnet-fullnode, and then restart the docker container with command: docker start okexchain-testnet-fullnode. When the docker container gets to the latest block, local RPC can be used:http://localhost:8545

Tag summary

Content type

Image

Digest

sha256:f34fa0a6e

Size

332.6 MB

Last updated

about 2 years ago

docker pull okexchain/fullnode-testnet