The documentation introduces how to setup a running server connecting to IOST testnet, if you just want to setup a local single-server blockchain net for debugging/testing, you may better refer to Launch Local Server
We are using Docker to deploy an IOST node.
Prepare Config File
For more details of iServer, see here.
First get the configuration templates:
mkdir -p /data/iserver curl https://developers.iost.io/docs/assets/testnet/latest/genesis.tgz | tar zxC /data/iserver curl https://developers.iost.io/docs/assets/testnet/latest/iserver.yml -o /data/iserver/iserver.yml
/data/iserver is going to mount as the data volume, you might change the path to suit your needs.
If you have already run previous version of iServer, make sure the old data has been purged:
rm -rf /data/iserver/storage
Starting the node
Run the command to start a node
docker run -d -v /data/iserver:/var/lib/iserver -p 30000-30003:30000-30003 iostio/iost-node
Or using docker-compose:
version: "2" services: iserver: image: iostio/iost-node restart: always ports: - "30000-30003:30000-30003" volumes: - iserver: lib/iserver
To start the node:
docker-compose up -d
To start, stop, restart or remove:
Checking the node
The log file is located at
An increasing value of
confirmed means that it is syncing the block data.
You may also check the state of the node using
iwallet tool inside the docker.
See also iWallet.
docker-compose exec iserver ./iwallet state
The latest blockchain info is also shown at blockchain explorer.